/* CSS Variables - Color Palette */
:root {
    /* Background Colors */
    --bg-primary: hsl(210, 8%, 98%);
    --white: #ffffff;
    --light-cream: hsl(45, 36%, 96%);
    --cream: #e8e6e0;
    /* Primary Colors */
    --gold: #d4af37;
    --gold-light: #f39c12;
    --dark-blue: #2c3e50;
    --dark-blue-light: #34495e;
    /* Text Colors */
    --text-primary: #334155;
    --text-gray: #7f8c8d;
    --text-light-gray: #95a5a6;
    --text-dark-gray: #bdc3c7;
    /* Status Colors */
    --success-green-light: #27ae60;
    --red-gradient: #e74c3c;
    --red-gradient-dark: #c0392b;
    /* Additional Colors */
    --brown: #8b4513;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    background-image: radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(139, 69, 19, 0.1) 0%, transparent 50%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background: transparent;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    padding: 16px 0;
}

.brand {
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 128px;
    flex-direction: row;
}

.troi-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.txt-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--dark-blue);
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}

.brand-subtitle {
    font-family: 'Lato', sans-serif;
    font-style: italic;
    font-size: clamp(0.7rem, 2vw, 1rem);
    color: var(--brown);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

.special-cards-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 0;
    padding: 20px 0 5px 0;
    scrollbar-width: none;
    -webkit-scrollbar: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    scroll-snap-type: x mandatory;
    position: relative;
}

    .special-cards-container::before {
        content: '';
        flex: 0 0 50%;
        min-width: 50px;
    }

    .special-cards-container::after {
        content: '';
        flex: 0 0 50%;
        min-width: 50px;
    }

    .special-cards-container::-webkit-scrollbar {
        display: none;
    }

    .special-cards-container::-webkit-scrollbar {
        height: 6px;
    }

    .special-cards-container::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }

    .special-cards-container::-webkit-scrollbar-thumb {
        background: var(--gold);
        border-radius: 10px;
    }

.special-card {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-blue-light) 100%);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 850px;
    min-width: 280px;
    flex-shrink: 0;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: var(--light-cream);
    scroll-snap-align: center;
    margin: 0 5%;
    display: flex;
    flex-direction: column-reverse;
}

    .special-card:hover {
        transform: translateY(-5px);
    }

.discount-ribbon {
    position: absolute;
    top: 5%;
    right: -10%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--dark-blue);
    padding: 10px 10%;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    z-index: 10;
    letter-spacing: 0.5px;
    transform: rotate(45deg);
    transform-origin: center;
}

.special-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    flex-direction: column;
}

    .special-header h2 {
        font-family: 'Playfair Display', serif;
        font-size: clamp(1.3rem, 4vw, 2rem);
        font-weight: 700;
        color: var(--gold);
        letter-spacing: 1px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

/* تعريفات لعرض صورة طبق اليوم */
.special-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.special-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.special-card-content.no-image .special-content-wrapper {
    justify-content: center;
}

.special-card-content.no-image .special-content {
    width: 100%;
    align-items: center;
    text-align: center;
}

.special-card-content.no-image .special-content h3,
.special-card-content.no-image .special-content .product-description {
    text-align: center;
}

.special-card-content.no-image .special-price {
    justify-content: center;
}

.special-image-container {
/*    flex-shrink: 0;*/
    width: 140px;
    height: 140px;
    /*border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 0 15px rgba(212, 175, 55, 0.4);
    background-color: var(--light-cream);
    margin: 0;*/
}

.special-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.special-image-container:hover .special-image {
    transform: scale(1.1);
}

.special-content {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 30%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-right: 10px;
}

.special-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
}

.special-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2.8vw, 1.6rem);
    font-weight: 400;
    color: var(--light-cream);
    margin-top: 0;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    text-align: left;
}

.special-content .product-description {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: var(--text-dark-gray);
    margin-bottom: 15px;
    font-style: italic;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    text-align: left;
}

.special-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 0;
    flex-wrap: wrap;
    width: 100%;
}

    .special-price .price {
        font-size: clamp(1.4rem, 3.9vw, 1.9rem);
        font-weight: 700;
        color: var(--gold);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    .special-price .original-price {
        font-size: clamp(0.9rem, 2.9vw, 1.2rem);
        color: var(--text-light-gray);
        text-decoration: line-through;
    }

.special-discount {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

    .special-discount .discount-badge {
        background: linear-gradient(135deg, var(--gold), var(--gold-light));
        color: var(--dark-blue);
        padding: 8px 16px;
        border-radius: 20px;
        font-weight: 700;
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
        box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    }

.discount-badge {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--dark-blue);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
    white-space: nowrap;
}

.special-dots-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.special-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(212, 175, 55, 0.5);
}

    .special-dot.active {
        background: var(--gold);
        border-color: var(--gold);
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
    }

.special-decorative-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin-top: 20px;
    border-radius: 1px;
    opacity: 0.5;
}

/* Special Indicators */
.special-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.special-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(212, 175, 55, 0.5);
}

    .special-dot.active {
        background: var(--gold);
        border-color: var(--gold);
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
    }

/* Menu Header */
.menu-header {
    background: transparent;
    padding: 30px 0;
    text-align: center;
}

.menu-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    color: var(--dark-blue);
    letter-spacing: 2px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.menu-decorative-line {
    width: min(200px, 80%);
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 0 auto;
    border-radius: 1px;
    opacity: 0.5;
}

/* Categories Section */
.categories-section {
    padding: 40px 0;
}

.categories-container {
    position: relative;
    width: 100%;
}

.expanded-card-placeholder {
    width: 100%;
    margin-bottom: 30px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 15px;
    transition: all 0.5s ease;
}

.category-card {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-blue-light) 100%);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    transform-origin: center;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.category-card.expanded .category-expanded-content {
    opacity: 1;
    max-height: none;
    overflow: visible;
}

.expanded-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Expanded Product Cards */
.category-card.expanded .product-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-cream) 100%);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: auto;
}

.category-card.expanded .product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card.expanded .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--gold);
}

.category-card.expanded .product-card:hover::before {
    opacity: 1;
}

/* Product Card Layouts in Expanded View */
.category-card.expanded .product-card.layout-simple {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    min-height: 60px;
}

.category-card.expanded .product-card.layout-simple .product-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
}

.category-card.expanded .product-card.layout-simple .product-details h3 {
    margin-bottom: 0;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.category-card.expanded .product-card.layout-simple .dotted-line {
    flex: 1;
    margin: 0 15px;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        #d4af37,
        #d4af37 4px,
        transparent 4px,
        transparent 8px
    );
}

.category-card.expanded .product-card.layout-simple .product-price {
    margin-top: 0;
    flex-shrink: 0;
    justify-content: flex-end;
}

.category-card.expanded .product-card.layout-discount {
    padding: 20px;
    min-height: 100px;
}

.category-card.expanded .product-card.layout-discount .discount-ribbon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #f9f7f2;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    z-index: 2;
}

.category-card.expanded .product-card.layout-discount .product-details h3 {
    margin-bottom: 15px;
    padding-right: 80px;
}

.category-card.expanded .product-card.layout-discount .product-price {
    margin-top: 15px;
    justify-content: flex-start;
    gap: 10px;
    padding-top: 15px;
    position: relative;
}

.category-card.expanded .product-card.layout-discount .product-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(200px, 80%);
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    border-radius: 1px;
    opacity: 0.5;
}

.category-card.expanded .product-card.layout-description {
    padding: 20px;
    min-height: 120px;
}

.category-card.expanded .product-card.layout-description .product-details h3 {
    margin-bottom: 10px;
}

.category-card.expanded .product-card.layout-description .product-description {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.6;
    font-style: italic;
}

.category-card.expanded .product-card.layout-description .product-price {
    margin-top: 15px;
    justify-content: flex-start;
    padding-top: 15px;
    position: relative;
}

.category-card.expanded .product-card.layout-description .product-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(200px, 80%);
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    border-radius: 1px;
    opacity: 0.5;
}

.category-card.expanded .product-card.layout-full {
    padding: 20px;
    min-height: 140px;
}

.category-card.expanded .product-card.layout-full .discount-ribbon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #f9f7f2;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    z-index: 2;
}

.category-card.expanded .product-card.layout-full .product-details h3 {
    margin-bottom: 10px;
    padding-right: 80px;
}

.category-card.expanded .product-card.layout-full .product-description {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.6;
    font-style: italic;
}

.category-card.expanded .product-card.layout-full .product-price {
    margin-top: 15px;
    justify-content: flex-start;
    gap: 10px;
    padding-top: 15px;
    position: relative;
}

.category-card.expanded .product-card.layout-full .product-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(200px, 80%);
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    border-radius: 1px;
    opacity: 0.5;
}

/* Common Product Card Elements in Expanded View */
.category-card.expanded .product-details h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2.8vw, 1.6rem);
    font-weight: 600;
    color: var(--dark-blue);
    position: relative;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.category-card.expanded .product-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.category-card.expanded .regular-price {
    font-size: clamp(1rem, 2.9vw, 1.2rem);
    font-weight: 700;
    color: var(--dark-blue);
}


.size-price {
    font-size: clamp(1rem, 2.9vw, 1.2rem);
    font-weight: 700;
    color: var(--dark-blue);
    margin:.4rem;
}

.category-card.expanded .price-with-discount {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.category-card.expanded .original-price {
    font-size: clamp(0.8rem, 2.4vw, 1rem);
    color: var(--text-light-gray);
    text-decoration: line-through;
}

.category-card.expanded .final-price {
    font-size: clamp(1.1rem, 2.9vw, 1.3rem);
    font-weight: 700;
    color: var(--dark-blue);
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: var(--gold);
    animation: spin 1s ease-in-out infinite;
    margin: 20px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animation Keyframes for Moving Cards */
@keyframes moveToTop {
    from {
        transform: translateY(0) scale(1);
    }
    to {
        transform: translateY(-100px) scale(1.05);
    }
}

@keyframes moveToGrid {
    from {
        transform: translateY(-100px) scale(1.05);
    }
    to {
        transform: translateY(0) scale(1);
    }
}

/* Legacy Sections Tabs (hidden) */
.sections-tabs {
    background: linear-gradient(135deg, var(--dark-blue-light) 0%, var(--dark-blue) 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 16px;
    margin: 0 12px;
}

.tabs-container {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-scrollbar: none;
}

    .tabs-container::-webkit-scrollbar {
        display: none;
    }

.tabs-wrapper {
    display: flex;
    gap: 8px;
    min-width: max-content;
    padding: 0 15px;
}

.tab-link {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dark-gray);
    padding: 5px 15px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
    min-width: fit-content;
}

    .tab-link:hover {
        background: rgba(212, 175, 55, 0.2);
        color: var(--gold);
        border-color: rgba(212, 175, 55, 0.3);
        transform: translateY(-2px);
    }

    .tab-link.active {
        background: linear-gradient(135deg, var(--gold), var(--gold-light));
        color: var(--dark-blue);
        border-color: var(--gold);
        font-weight: 700;
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    }

/* Dropdown Styles */
.dropdown-container {
    text-align: center;
    margin-top: 15px;
    position: relative;
}

.dropdown-btn {
    background: linear-gradient(135deg, var(--dark-blue), var(--dark-blue-light));
    color: var(--light-cream);
    border: 2px solid var(--gold);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    width: fit-content;
}

    .dropdown-btn:hover {
        background: linear-gradient(135deg, var(--gold), var(--gold-light));
        color: var(--dark-blue);
        transform: translateY(-2px);
    }

.dropdown-menu {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    min-width: 250px;
    max-width: 90vw;
    background: linear-gradient(135deg, var(--dark-blue), var(--dark-blue-light));
    color: var(--light-cream);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    margin-top: 10px;
    padding: 10px 0;
    border: 2px solid var(--gold);
    backdrop-filter: blur(10px);
    max-height: 60vh;
    overflow-y: auto;
}

.dropdown-section-link {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark-gray);
    text-decoration: none;
    font-size: clamp(0.9rem, 2vw, 1rem);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

    .dropdown-section-link:hover {
        background: rgba(212, 175, 55, 0.2);
        color: var(--gold);
        padding-left: 25px;
    }

    .dropdown-section-link:last-child {
        border-bottom: none;
    }

/* Content Container */
.content-container {
    padding: 30px 0;
    min-height: 400px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 15px;
}

    .section-header h2 {
        font-family: 'Playfair Display', serif;
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        font-weight: 700;
        color: var(--dark-blue);
        letter-spacing: 1px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        margin-bottom: 15px;
    }

.section-underline {
    width: min(150px, 60%);
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 0 auto;
    border-radius: 1px;
    opacity: 0.5;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 15px;
}

/* Product Card Base Styles */
.product-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-cream) 100%);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: auto;
}

    .product-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border-color: var(--gold);
    }

        .product-card:hover::before {
            opacity: 1;
        }

/* No Products Message */
.no-products {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-gray);
}

    .no-products .coffee-icon {
        font-size: 3rem;
        margin-bottom: 20px;
        display: block;
    }

    .no-products p {
        font-size: clamp(1rem, 3vw, 1.2rem);
        font-style: italic;
    }

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-blue-light) 100%);
    color: var(--light-cream);
    padding: 30px 0;
    text-align: center;
    border-top: 3px solid var(--gold);
    margin-top: 50px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

    .footer-content p {
        font-size: clamp(0.8rem, 2vw, 1rem);
        color: var(--text-dark-gray);
        margin: 0;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        padding: 0 10px;
    }
    
    .special-image-container {
/*    flex-shrink: 0;*/
    width: 110px;
    height: 110px;
    /*border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 0 15px rgba(212, 175, 55, 0.4);
    background-color: var(--light-cream);
    margin: 0;*/
}
    .category-card {
        min-height: 180px;
    }
    
    .expanded-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .logo-container {
        gap: 20px;
        flex-direction: column;
    }
    
    .products-column {
        gap: 6px;
    }
    
    .product-preview-item {
        padding: 6px 0;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .category-card {
        padding: 15px;
        min-height: 160px;
    }
    
    .category-name {
        font-size: 1.3rem;
    }
    
    .product-preview-item {
        font-size: 0.9rem;
        padding: 5px 0;
    }
    
    .more-products-indicator {
        font-size: 0.85rem;
        padding: 8px;
    }
}expanded {
    transform: scale(1);
    margin: 0;
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-height: auto;
}

.category-card.moving-to-top {
    z-index: 1000;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card.moving-back {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-header {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.category-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.category-preview {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
}

.category-card.expanded .category-preview {
    display: none;
}

.products-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.product-preview-item {
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    color: var(--text-dark-gray);
    padding: 8px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.2s ease;
    text-align: left;
    line-height: 1.4;
}

.product-preview-item:last-child {
    border-bottom: none;
}

.product-preview-item:hover {
    color: var(--light-cream);
    padding-left: 10px;
}

.more-products-indicator {
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--gold);
    font-style: italic;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    font-weight: 500;
}

.no-products-preview {
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    color: var(--text-light-gray);
    text-align: center;
    font-style: italic;
    padding: 30px 0;
}

.category-expanded-content {
    margin-top: 20px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card.

/* Mobile Specific Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

    .special-card-content {
        flex-direction: column;
    }
    
    .special-image-container {
        margin-bottom: 15px;
        width: 100px;
        height: 100px;
    }

    .logo-container {
        flex-direction: row;
        gap: 52px;
    }

    .troi-logo img {
        width: 100px;
        height: 100px;
    }

    .txt-logo img {
        height: 80px;
    }

    .brand-text h1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .special-card {
        padding: 20px;
        margin: 0% 50%;
        width: 100%;
        max-width: 850px;
        min-width: 250px;
    }

    .discount-ribbon {
        padding: 10px 10%;
        font-size: clamp(0.7rem, 2vw, 0.9rem);
    }

    .special-title {
        font-size: clamp(1.1rem, 3.5vw, 1.8rem);
        margin-bottom: 12px;
    }

    .special-content h3 {
        font-size: clamp(1.1rem, 2.8vw, 1.6rem);
    }

    .special-header {
        flex-direction: column;
        gap: 8px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }

    /* Mobile adjustments for simple layout */
    .product-card.layout-simple {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        min-height: auto;
    }

        .product-card.layout-simple .product-details {
            flex-direction: row;
            gap: 10px;
            align-items: stretch;
        }

        .product-card.layout-simple .dotted-line {
            margin: 10px 0;
            order: 2;
        }

        .product-card.layout-simple .product-details h3 {
            order: 1;
            text-align: left;
            font-size: clamp(1.1rem, 2.8vw, 1.6rem);
        }

        .product-card.layout-simple .product-price {
            order: 3;
            justify-content: flex-start;
        }

    /* Mobile adjustments for other layouts */
    .product-card.layout-discount,
    .product-card.layout-description,
    .product-card.layout-full {
        padding: 15px;
    }

        .product-card.layout-description .product-details h3 {
            font-size: clamp(1.1rem, 2.8vw, 1.6rem);
        }

        .product-card.layout-discount .product-details h3,
        .product-card.layout-full .product-details h3 {
            padding-right: 70px; /* Reduced space for smaller screens */
            font-size: clamp(1.1rem, 2.8vw, 1.6rem);
        }

    .product-details h3 {
        font-size: clamp(1.1rem, 2.8vw, 1.6rem);
        line-height: 1.4;
    }

    .product-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: clamp(0.9rem, 2.4vw, 1.1rem);
    }

    .sections-tabs {
        border-radius: 12px;
        margin: 0 8px;
    }

    .tabs-wrapper {
        padding: 0 10px;
    }

    .tab-link {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .dropdown-menu {
        min-width: 200px;
        max-width: 85vw;
    }
}

@media (max-width: 480px) {
    .logo-container {
        flex-direction: row;
        gap: 40px;
    }

    .troi-logo img {
        height: 80px;
        width: 80px;
    }

    .txt-logo img {
        height: 70px;
    }

    .brand-text h1 {
        font-size: 1.8rem;
    }

    .menu-title {
        font-size: 2.5rem;
    }

    .special-card {
        padding: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .special-content {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

        .special-content h3 {
            font-size: clamp(1.1rem, 2.8vw, 1.6rem);
            word-wrap: break-word;
            overflow-wrap: break-word;
            hyphens: auto;
        }

        .special-content .product-description {
            font-size: clamp(0.8rem, 2vw, 1rem);
            word-wrap: break-word;
            overflow-wrap: break-word;
            hyphens: auto;
        }

    .product-card.layout-simple,
    .product-card.layout-discount,
    .product-card.layout-description,
    .product-card.layout-full {
        padding: 12px;
    }

        .product-card.layout-discount .product-details h3,
        .product-card.layout-full .product-details h3 {
            padding-right: 50px;
            font-size: clamp(1.1rem, 2.8vw, 1.6rem);
        }

        .product-card.layout-simple .product-details h3,
        .product-card.layout-description .product-details h3 {
            font-size: clamp(1.1rem, 2.8vw, 1.6rem);
        }

    .special-card {
        padding: 16px;
        margin: 5%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
        max-width: 380px;
        min-width: 200px;
    }

    .discount-ribbon {
        padding: 5px 10%;
        font-size: clamp(0.6rem, 1.8vw, 0.8rem);
    }

    .special-title {
        font-size: clamp(1rem, 3vw, 1.5rem);
        margin-bottom: 10px;
    }

    .special-discount .discount-badge {
        padding: 6px 12px;
        font-size: clamp(0.8rem, 2vw, 1rem);
    }

    .special-content {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

        .special-content h3 {
            font-size: clamp(1.1rem, 2.8vw, 1.6rem);
            word-wrap: break-word;
            overflow-wrap: break-word;
            hyphens: auto;
        }

        .special-content .product-description {
            font-size: clamp(0.9rem, 1.8vw, 0.9rem);
            word-wrap: break-word;
            overflow-wrap: break-word;
            hyphens: auto;
        }

    .sections-tabs {
        border-radius: 8px;
        margin: 0 4px;
    }

    .container {
        padding: 0 8px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .menu-header {
        padding: 20px 0;
    }

    .todays-special-fixed {
        padding: 15px 0;
    }

    .sections-tabs {
        padding: 10px 0;
    }

    .content-container {
        padding: 20px 0;
    }
}

/* Large screens optimization */
@media (min-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 30px;
    }

    .product-card.layout-simple {
        padding: 24px 32px;
    }

    .product-card.layout-discount,
    .product-card.layout-description,
    .product-card.layout-full {
        padding: 32px;
    }

    .sections-tabs {
        border-radius: 20px;
        margin: 0 16px;
    }

    .special-card {
        padding: 32px;
        margin: 24px 12px;
    }

    .special-content h3 {
        font-size: clamp(1.1rem, 2.8vw, 1.6rem);
    }

    .product-card.layout-simple .product-details h3,
    .product-card.layout-discount .product-details h3,
    .product-card.layout-description .product-details h3,
    .product-card.layout-full .product-details h3 {
        font-size: clamp(1.1rem, 2.8vw, 1.6rem);
    }
}

/* Touch-friendly improvements */
@media (hover: none) {
    .tab-link:hover,
    .dropdown-btn:hover,
    .dropdown-section-link:hover,
    .product-card:hover,
    .special-card:hover {
        transform: none;
    }

    .tab-link,
    .dropdown-btn,
    .dropdown-section-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.product-card.layout-discount,
.product-card.layout-description,
.product-card.layout-full {
    padding: 12px;
}

    .product-card.layout-discount .product-details h3,
    .product-card.layout-full .product-details h3 {
        padding-right: 60px;
    }

.product-details h3 {
    font-size: clamp(1.1rem, 2.8vw, 1.6rem);
    line-height: 1.5;
}

.tabs-wrapper {
    gap: 5px;
}

.tab-link {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.dropdown-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
}

@media (max-width: 360px) {
    .products-grid {
        grid-template-columns: 1fr;
        padding: 5px;
    }

    .product-card.layout-simple,
    .product-card.layout-discount,
    .product-card.layout-description,
    .product-card.layout-full {
        padding: 16px;
    }

    .special-card {
        width: 100%;
        max-width: 320px;
        min-width: 180px;
        padding: 14px;
        margin: 8px;
    }

    .discount-ribbon {
        padding: 4px 12%;
        font-size: clamp(0.5rem, 1.5vw, 0.7rem);
    }

    .special-content h3 {
        font-size: clamp(1.1rem, 2.8vw, 1.6rem);
    }

    .product-card.layout-simple .product-details h3,
    .product-card.layout-discount .product-details h3,
    .product-card.layout-description .product-details h3,
    .product-card.layout-full .product-details h3 {
        font-size: clamp(1.1rem, 2.8vw, 1.6rem);
    }
}


/* تحديث تنسيق طبق اليوم عند وجود صورة */
.special-card.has-image {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;
}

    /* الصف الأول: TODAY'S SPECIAL */
    .special-card.has-image .special-title {
        font-family: 'Playfair Display', serif;
        font-size: clamp(1.3rem, 4vw, 2rem);
        font-weight: 700;
        color: var(--gold);
        letter-spacing: 1px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        margin-bottom: 0;
        text-align: center;
        order: 1;
    }

    /* الصف الثاني: الصورة والمحتوى */
    .special-card.has-image .special-card-content {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 8px; /* 8 بكسل بين الصورة والمحتوى */
        order: 2;
    }

    .special-card.has-image .special-image-container {
        flex-shrink: 0;
        width: 120px;
        height: 120px;
        border-radius: 50%;
        overflow: hidden;
        border: 3px solid var(--gold);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        background-color: var(--light-cream);
        order: 1; /* الصورة على اليسار */
    }

    .special-card.has-image .special-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .special-card.has-image .special-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 8px;
        order: 2; /* المحتوى على اليمين */
    }

    /* اسم المنتج في الصف الثاني */
    .special-card.has-image .special-product-name {
        font-family: 'Playfair Display', serif;
        font-size: clamp(1.1rem, 2.8vw, 1.6rem);
        font-weight: 600;
        color: var(--light-cream);
        margin-bottom: 4px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        text-align: left;
        line-height: 1.3;
    }

    /* الوصف في الصف الثاني */
    .special-card.has-image .product-description {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
        color: var(--text-dark-gray);
        font-style: italic;
        line-height: 1.4;
        text-align: left;
        margin: 0;
    }

    /* الصف الثالث: السعر */
    .special-card.has-image .special-price {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 8px;
        flex-wrap: wrap;
        order: 3;
    }

        .special-card.has-image .special-price .price {
            font-size: clamp(1.4rem, 3.9vw, 1.9rem);
            font-weight: 700;
            color: var(--gold);
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .special-card.has-image .special-price .original-price {
            font-size: clamp(0.9rem, 2.9vw, 1.2rem);
            color: var(--text-light-gray);
            text-decoration: line-through;
        }

/* تحديث للموبايل */
@media (max-width: 768px) {
    .special-card.has-image {
        padding: 20px;
        gap: 12px;
    }


        .special-card.has-image .special-card-content {
            gap: 8px;
        }

        .special-card.has-image .special-image-container {
            width: 100px;
            height: 100px;
        }

        .special-card.has-image .special-title {
            font-size: clamp(1.1rem, 3.5vw, 1.8rem);
        }

        .special-card.has-image .special-product-name {
            font-size: clamp(1rem, 2.5vw, 1.4rem);
        }

        .special-card.has-image .product-description {
            font-size: clamp(0.8rem, 2vw, 1rem);
        }
}

@media (max-width: 480px) {
    .special-card.has-image {
        padding: 16px;
        gap: 10px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 20px;
        padding: 0 15px;
        transition: all 0.5s ease;
    }
        .special-card.has-image .special-image-container {
            width: 80px;
            height: 80px;
        }

        .special-card.has-image .special-card-content {
            gap: 8px;
        }
}

/* إزالة التنسيق القديم عندما لا توجد صورة */
.special-card:not(.has-image) .special-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.special-card:not(.has-image) .special-content {
    text-align: center;
}

.special-card:not(.has-image) .special-title {
    order: 1;
    margin-bottom: 16px;
}

.special-card:not(.has-image) .special-product-name {
    order: 2;
    text-align: center;
}

.special-card:not(.has-image) .product-description {
    order: 3;
    text-align: start;
}

.special-card:not(.has-image) .special-price {
    order: 4;
    justify-content: center;
}

.product-preview {
    color: #e8e6e0;
    font-size: clamp(.8rem, 3vw, 1rem);
    font-weight: 550;
    text-align: center;
}
.more-products {
    margin-top: auto;
    color: #e8e6e0;
    font-weight: 500;
    border: 1px solid #e8e6e0;
    border-radius: 8px;
    padding: 5px 12px;
    text-align: center;
    font-size: 12px;
    transition: all 0.3s ease;
    background: transparent;
}

/* Category Header - Updated to position image at top left */
.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    position: relative;
    gap: 10px;
}

    .category-header img {
        width: 40px;
        height: 50px;
        object-fit: contain;
        flex-shrink: 0;
    }

.category-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    flex: 1;
    text-align: left;
    order: 1;
}

/* Mobile adjustments for category header */
@media (max-width: 768px) {
    .category-header img {
        width: 40px;
        height: 40px;
    }

    .category-name {
        font-size: clamp(1.2rem, 4vw, 1.6rem);
    }
}

@media (max-width: 480px) {
    .category-header {
        gap: 10px;
    }

        .category-header img {
            width: 30px;
            height: 35px;
        }

    .category-name {
        font-size: clamp(.8rem, 3.5vw, 1.4rem);
    }
}