:root {
    --category-color: red;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-logo-container {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(135, 20, 20, 0.3);
    position: relative;
    z-index: 2;
}

.loader-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 180px;
    height: 180px;
    border: 5px solid transparent;
    border-top-color: #CC0000;
    border-right-color: #CC0000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .loader-logo-container {
        width: 150px;
        height: 150px;
    }

    .loader-logo {
        width: 120px;
        height: 120px;
    }

    .loader-spinner {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .loader-logo-container {
        width: 130px;
        height: 130px;
    }

    .loader-logo {
        width: 100px;
        height: 100px;
    }

    .loader-spinner {
        width: 130px;
        height: 130px;
        border-width: 4px;
    }
}
/* Page Loader */


/* Header Section */
.site-header {
    width: 100%;
    position: relative;
}

.address-image img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    display: block;
}

.info-section {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin-top: -60px;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(145, 7, 7, 0.2);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.logo-container {
    flex: 0 0 auto;
    margin-top: -70px;
    margin-left: 30px;
    position: relative;
    z-index: 10;
}

.logo-bg {
    background-color: #fff;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(145, 7, 7, 0.2);
}

.logo-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.text-center {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}

.restaurant-name {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #CC0000;
    line-height: 1.2;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.social-icons a {
    font-size: 16px;
    color: #fff;
    background-color: #CC0000;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(145, 7, 7, 0.2);
    transition: background-color 0.3s, color 0.3s;
}

.social-icons a:hover {
    background-color: #fff;
    color: #CC0000;
}
/* Header Section */


/* Category Section */
.category-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    padding: 1rem 0;
    margin-top: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-wrapper::-webkit-scrollbar {
    display: none;
}

.category-wrapper.active {
    cursor: grabbing;
}

.category-item {
    display: inline-block;
    border: 1px solid #CC0000;
    color: #CC0000;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    transition: background-color 0.3s, color 0.3s;
    user-select: none;
    white-space: nowrap;
}

.category-item:hover {
    background-color: #CC0000;
    color: white;
}

.category-item.active {
    background-color: #CC0000;
    color: white;
}


.search-container {
    display: inline-flex;
    align-items: center;
    border: 1px solid #CC0000;
    border-radius: 10px;
    padding: 0.5rem;
    margin-left: 5px;
    margin-right: 0.5rem;
    width: 100px;
    transition: border-color 0.3s;
    background-color: white;
}

.search-container:focus-within {
    border-color: #CC0000;
}

.search-container input {
    border: none;
    outline: none;
    width: 60px;
    font-size: 0.9rem;
}

.search-container i {
    margin-right: 0.2rem;
    color: #CC0000;
}
/* Category Section */


/* Products Section */
#productsWrapper {
    width: 90%;
    margin: 20px auto;
}

.category-section {
    margin-bottom: 2rem;
}

.category-heading {
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #CC0000;
    border: 1px solid #CC0000;
    border-radius: 20px;
}

.product-card {
    display: flex;
    align-items: center;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 15px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(145, 7, 7, 0.2);
    transition: box-shadow 0.3s;
    gap: 15px;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(135, 20, 20, 0.3);
}

.product-image {
    width: 200px;
    height: 160px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.product-right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.product-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
}

.product-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

.product-price {
    font-weight: 500;
    font-size: 1rem;
    color: #555;
}

.product-actions {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 20px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    border: 1px solid #CC0000;
    background-color: white;
    color: #CC0000;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s, color 0.3s;
}

.quantity-control button:hover {
    background-color: #CC0000;
    color: white;
}

.quantity-control span {
    min-width: 25px;
    text-align: center;
    font-size: 1rem;
}
/* Products Section */

/* Fixed Cart Bar */
.cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: none;
    z-index: 1050;
    display: none;
}

.cart-bar .btn {
    background: linear-gradient(135deg, #CC0000 0%, #a51818 100%);
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(135, 20, 20, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}


.cart-bar .btn:active {
    transform: translateY(0);
}
/* Fixed Cart Bar */


/* Slide-up Cart Panel */
.cart-panel {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    max-height: 75vh;
    background: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.25);
    padding: 0;
    overflow: hidden;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
}

.cart-panel.active {
    bottom: 0;
}

.cart-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 5;
    padding: 20px 24px 16px;
    border-bottom: 2px solid #f0f0f0;
}

.cart-header h5 {
    font-size: 20px;
    font-weight: 700;
    color: #CC0000;
    margin: 0;
}

.btn-close {
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    padding: 0;
    width: 30px;
    height: 30px;
}

.btn-close:hover {
    opacity: 1;
}

.cart-items {
    padding: 20px 24px;
    max-height: calc(75vh - 280px);
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-name {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.item-price {
    font-size: 15px;
    color: #CC0000;
    font-weight: 600;
}

.cart-info {
    background: #fff8f8;
    border: 1px solid #ffe0e0;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 24px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-info i {
    color: #CC0000;
    font-size: 18px;
    flex-shrink: 0;
}

.cart-info {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.cart-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 20px 24px;
    border-top: 2px solid #f0f0f0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
}

.cart-footer > div {
    margin-bottom: 10px;
}

.cart-footer > div:last-child {
    margin-bottom: 0;
    padding-top: 10px;
    border-top: 2px solid #CC0000;
    margin-top: 10px;
}

.cart-footer span:first-child {
    color: #666;
    font-size: 15px;
}

.cart-footer span:last-child {
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.cart-footer .fw-bold span {
    font-size: 18px;
    color: #CC0000;
    font-weight: 700;
}
/* Slide-up Cart Panel */

/* Mobile Responsive */
@media (max-width: 768px) {
    .cart-bar {
        padding: 10px 16px;
    }

    .cart-bar .btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    .cart-header {
        padding: 16px 20px 12px;
    }

    .cart-header h5 {
        font-size: 18px;
    }

    .cart-items {
        padding: 16px 20px;
    }

    .cart-info {
        margin: 12px 20px 0;
        padding: 10px 14px;
    }

    .cart-footer {
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .cart-bar .btn {
        font-size: 14px;
        padding: 10px 16px;
    }

    .cart-header h5 {
        font-size: 16px;
    }

    .item-name,
    .item-price {
        font-size: 14px;
    }

    .cart-footer span {
        font-size: 14px;
    }

    .cart-footer .fw-bold span {
        font-size: 16px;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .address-image img {
        max-height: 400px;
    }

    .info-section {
        padding: 15px 20px;
        gap: 15px;
    }

    .logo-container {
        margin-top: -40px;
        margin-left: 25px;
    }

    .logo-bg {
        width: 100px;
        height: 100px;
    }

    .logo-img {
        width: 75px;
        height: 75px;
    }

    .restaurant-name {
        font-size: 24px;
    }

    .social-icons a {
        font-size: 15px;
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 768px) {
    .address-image img {
        max-height: 400px;
    }

    .info-section {
        gap: 12px;
        padding: 12px 15px;
    }

    .logo-container {
        margin-top: -35px;
        margin-left: 20px;
    }

    .logo-bg {
        width: 80px;
        height: 80px;
    }

    .logo-img {
        width: 60px;
        height: 60px;
    }

    .restaurant-name {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .social-icons a {
        font-size: 14px;
        width: 32px;
        height: 32px;
    }

    .product-image {
        width: 150px;
        height: 120px;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-price {
        font-size: 0.9rem;
    }

    .quantity-control button {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .quantity-control span {
        min-width: 22px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .address-image img {
        max-height: 400px;
    }

    .info-section {
        gap: 8px;
        padding: 10px 12px;
    }

    .logo-container {
        margin-top: -25px;
        margin-left: 15px;
    }

    .logo-bg {
        width: 60px;
        height: 60px;
    }

    .logo-img {
        width: 45px;
        height: 45px;
    }

    .restaurant-name {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .social-icons a {
        font-size: 12px;
        width: 28px;
        height: 28px;
    }

    .product-card {
        gap: 10px;
        padding: 8px;
    }

    .product-image {
        width: 120px;
        height: 100px;
    }

    .product-details {
        gap: 5px;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 0.85rem;
    }

    .quantity-control button {
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
    }

    .quantity-control span {
        min-width: 20px;
        font-size: 0.85rem;
    }
}

@media (max-width: 370px) {
    .address-image img {
        max-height: 400px;
    }

    .info-section {
        gap: 6px;
        padding: 8px;
    }

    .logo-container {
        margin-top: -20px;
        margin-left: 10px;
    }

    .logo-bg {
        width: 50px;
        height: 50px;
    }

    .logo-img {
        width: 38px;
        height: 38px;
    }

    .restaurant-name {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .social-icons a {
        font-size: 11px;
        width: 26px;
        height: 26px;
    }

    .product-card {
        gap: 8px;
        padding: 6px;
    }

    .product-image {
        width: 100px;
        height: 85px;
    }

    .product-details {
        gap: 4px;
    }

    .product-name {
        font-size: 0.8rem;
    }

    .product-price {
        font-size: 0.75rem;
    }

    .quantity-control button {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .quantity-control span {
        min-width: 18px;
        font-size: 0.8rem;
    }
}
