/* ====================== SCROLLBARS ====================== */
html {
    scrollbar-width: thin;
    scrollbar-color: #e74c3c #2d2d2d;
}

html::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 4px;
}

html::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 4px;
}

html::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}

html::-webkit-scrollbar-thumb:active {
    background: #a93226;
}

.nav-buttons {
    scrollbar-width: thin;
    scrollbar-color: #e74c3c #2d2d2d;
}

.nav-buttons::-webkit-scrollbar {
    height: 6px;
}

.nav-buttons::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 3px;
}

.nav-buttons::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 3px;
}

.nav-buttons::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}

.nav-buttons::-webkit-scrollbar-thumb:active {
    background: #a93226;
}

/* ====================== MAP ====================== */
.map-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #444;
    text-align: center;
}

.map-container h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.map-embed {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: #1a1a1a;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ====================== RESET & BODY ====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    min-height: 100vh;
}

/* ====================== HERO ====================== */
.hero {
    height: 70vh;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5)), url('image/hyrje.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-content {
    position: relative;
    border-radius: 20px;
    background-color: #52525270;
    z-index: 2;
    padding: 1rem;
    animation: fadeInUp 1s ease-out;
}

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

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

.hero h1 {
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-btn {
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.6);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.search-container {
    max-width: 600px;
    margin: 1rem auto 0;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.7rem 3rem 0.7rem 1rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

/* ====================== NAVIGATION ====================== */
.category-nav {
    background: #2d2d2d;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-buttons {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e74c3c;
    background: transparent;
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 1rem;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: rgba(231, 76, 60, 0.2);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-color: #c0392b;
}

/* ====================== MENU GRID ====================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.menu-item {
    background: linear-gradient(135deg, #333 0%, #2a2a2a 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #444;
    cursor: pointer;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
    border-color: #e74c3c;
}

.menu-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.menu-item-content {
    padding: 1.5rem;
}

.menu-item-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #fff;
}

.menu-item-description {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.menu-item-price {
    font-size: 1rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge-popular {
    background: #f39c12;
    color: #fff;
}

.badge-veg {
    background: #27ae60;
    color: #fff;
}

.order-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.5);
}

/* ====================== MODAL BASE ====================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    padding: 2rem;
    margin: 10px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideDown 0.3s;
}

.modal-content-border {
    border: 2px solid #e74c3c;
    border-radius: 20px;
    margin: 5% auto;
    max-width: 500px;
    max-height: 85vh;
    width: 90%;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    box-shadow: 0 10px 40px rgba(231, 76, 60, 0.3);
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

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

.close {
    color: #aaa;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #e74c3c;
}

/* ====================== FORM ====================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e74c3c;
    font-weight: bold;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #444;
    border-radius: 10px;
    background: #1a1a1a;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
}

/* ====================== SIZE & QUANTITY ====================== */
.size-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.size-option {
    padding: 0.75rem;
    border: 2px solid #444;
    border-radius: 10px;
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.size-option:hover {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.size-option.selected {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.size-name {
    font-weight: bold;
    display: block;
    margin-bottom: 0.25rem;
}

.size-price {
    font-size: 0.9rem;
    color: #ccc;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qty-display {
    font-size: 1.5rem;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
}

.submit-order-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.5);
}

/* ====================== FLOATING BUTTONS ====================== */
.floating-phone {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.5);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s;
    animation: pulse 2s infinite;
    text-decoration: none;
    border: 3px solid white;
}

.floating-phone:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 30px rgba(39, 174, 96, 0.7);
}

.phone-tooltip {
    position: absolute;
    right: 70px;
    background: #27ae60;
    color: white;
    padding: 0.3rem 0.5rem;
    border-radius: 10px;
    white-space: nowrap;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.floating-phone:hover .phone-tooltip {
    opacity: 1;
}

/* Floating Cart - PËR TË GJITHA PAJISJET */
.floating-cart {
    position: fixed;
    bottom: 20px;
    right: 40px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.5);
    z-index: 999;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 3px solid white;
    animation: pulse 2s infinite;
}

.floating-cart:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.7);
}

.floating-cart span#cartCount {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #c0392b;
    color: white;
    font-size: 0.75rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ====================== CART ITEM - LAYOUT I RI ====================== */
.cart-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(231, 76, 60, 0.2);
    transition: background 0.2s ease;
}

.cart-item:hover {
    background: rgba(231, 76, 60, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin: 0 -1rem;
}

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

.cart-item-img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 12px;
    margin-right: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid #444;
    flex-shrink: 0;
}

.cart-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 68px;
}

.cart-item-title {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.cart-item-title strong {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.cart-item-size {
    font-size: 0.85rem;
    color: #e74c3c;
    font-weight: 500;
    margin-top: 0.15rem;
}

.cart-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.95rem;
}

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

.qty-btn {
    width: 20px;
    height: 20px;
    border: 2px solid #e74c3c;
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
}

.qty-btn2 {
    width: 30px;
    height: 30px;
    border: 2px solid #e74c3c;
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn2:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
}

.qty-number {
    min-width: 28px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    font-size: 1rem;
}

.cart-item-total-price {
    font-weight: bold;
    color: #e74c3c;
    font-size: 1.05rem;
    white-space: nowrap;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.remove-item-btn:hover {
    opacity: 1;
    background: rgba(231, 76, 60, 0.2);
    transform: scale(1.15);
}

.cart-empty {
    text-align: center;
    color: #95a5a6;
    font-style: italic;
    padding: 2.5rem 1rem;
    font-size: 1.1rem;
}

/* ====================== CART MODAL TOTAL ====================== */
.total-display {
    background: rgba(231, 76, 60, 0.15);
    border: 2px solid #e74c3c;
    border-radius: 12px;
    padding: 0.5rem;
    margin: 1rem 0;
    text-align: center;
}

.total-label {
    color: #ccc;
    font-weight: 600;
}

.total-amount {
    font-size: 1.8rem;
    color: #e74c3c;
    font-weight: 600;
}

#cartModal .modal-content {
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

/* Scrollbar për listën e shportës */
#cartItemsList {
    max-height: 45vh;
    padding-right: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: hidden;
    overflow-y: auto;
}

#cartItemsList::-webkit-scrollbar {
    width: 6px;
}

#cartItemsList::-webkit-scrollbar-track {
    background: transparent;
}

#cartItemsList::-webkit-scrollbar-thumb {
    background: rgba(231, 76, 60, 0.4);
    border-radius: 3px;
}

#cartItemsList::-webkit-scrollbar-thumb:hover {
    background: #e74c3c;
}

/* ====================== FOOTER ====================== */
.footer {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    padding: 2rem 1rem;
    margin-top: 3rem;
    border-top: 3px solid #e74c3c;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-item {
    text-align: center;
}

.footer-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-item h3 {
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.footer-item p {
    color: #ccc;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
}

/* ====================== LANGUAGE SWITCHER ====================== */
.language-switcher {
    position: fixed;
    bottom: 160px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.lang-btn {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    font-size: 24px;
    transition: transform 0.2s, background-color 0.2s;
}

.lang-btn:hover {
    transform: scale(1.1);
    background-color: #f1f1f1;
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 768px) {
    .map-embed {
        height: 300px;
    }

    .hero {
        height: 24vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .hero-content {
        padding: 0.5rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .size-selector {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-nav {
        padding: 0.5rem;
    }

    .container {
        padding: 1rem;
    }

    .nav-btn {
        padding: 0.5rem 1rem;
        width: 45%;
    }

    .nav-buttons {
        padding: 0rem;
    }

    .modal-content-border {
        width: 95%;
        margin: 10% auto;
    }

    .floating-cart span#cartCount {
        width: 19px;
        height: 19px;
        font-size: 0.7rem;
        top: -5px;
        right: -5px;
    }

    /* Cart Item Mobile */
    .cart-item-img {
        width: 56px;
        height: 56px;
    }

    .cart-item-title strong {
        font-size: 0.95rem;
    }

    .cart-item-size {
        font-size: 0.8rem;
    }

    .qty-btn,
    .remove-item-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .qty-number {
        font-size: 0.95rem;
    }

    .cart-item-total-price {
        font-size: 1rem;
    }

    .total-amount {
        font-size: 1.6rem;
    }
}