/* Kuch Kuch Menu - Frontend Styles */
/* Fonts: Gilroy family (must be loaded by theme or @font-face) */

:root {
    --kk-font-gilroy: 'Gilroy', sans-serif;
    --kk-font-poppins: 'Poppins', sans-serif;
    --kk-color-text: #000000;
    --kk-color-bg: #ffffff;
    --kk-color-drinks-primary: #ea3b7a;
    --kk-color-food-primary: #d60918;
    --kk-color-tab-active: #f0ad00;
    --kk-color-tab-inactive: #ffffff;
    --kk-color-allergen-code: #ea3b7a;
    --kk-color-allergen-text: #c60614;
    --kk-color-sauce: #d60918;
    --kk-color-divider: #000000;
}

/* ============================================
   Base
   ============================================ */

.kk-menu {
    font-family: var(--kk-font-gilroy);
    color: var(--kk-color-text);
    max-width: 100%;
    margin: 0 auto;
    background: var(--kk-color-bg);
}

.kk-menu *,
.kk-menu *::before,
.kk-menu *::after {
    box-sizing: border-box;
}

/* ============================================
   Tab Navigation
   ============================================ */

.kk-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 0;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 50px;
    align-items: center;
}

/* Drinks tab bar = pink, Food tab bar = red */
.kk-menu--drinks .kk-tabs {
    background: var(--kk-color-drinks-primary);
}

.kk-menu--food .kk-tabs {
    background: var(--kk-color-food-primary);
}

.kk-tabs::-webkit-scrollbar {
    display: none;
}

.kk-tab {
    flex-shrink: 0;
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: var(--kk-color-tab-inactive);
    font-family: var(--kk-font-gilroy);
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s;
    text-transform: none;
    text-decoration: none;
    line-height: 1.4;
}

.kk-tab:hover {
    color: var(--kk-color-tab-active);
}

.kk-tab--active,
.kk-tab--active:hover {
    color: var(--kk-color-tab-active);
}

/* ============================================
   Sections
   ============================================ */

.kk-section {
    margin-bottom: 40px;
    padding: 0 24px;
}

.kk-section-title {
    text-align: center;
    font-family: var(--kk-font-gilroy);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.02em;
    margin: 0 0 24px;
    color: var(--kk-color-text);
    text-transform: uppercase;
    line-height: 1.4;
}

/* ============================================
   Drink Cards
   ============================================ */

.kk-drinks-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.kk-drink-card {
    display: flex;
    gap: 16px;
    padding: 0;
    align-items: flex-start;
}

.kk-drink-card__image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

.kk-drink-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kk-drink-card__body {
    flex: 1;
    min-width: 0;
}

.kk-drink-card__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}

.kk-drink-card__name {
    font-family: var(--kk-font-gilroy);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    color: var(--kk-color-text);
}

.kk-drink-card__price {
    font-family: var(--kk-font-gilroy);
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
    color: var(--kk-color-text);
}

/* Tags */

.kk-drink-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.kk-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-family: var(--kk-font-gilroy);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.kk-tag--type {
    background: #1a1a1a;
    color: #fff;
}

.kk-tag--flavor.kk-tag--filled {
    background: var(--kk-tag-bg, #333);
    color: var(--kk-tag-text, #fff);
}

.kk-tag--flavor.kk-tag--outlined {
    background: transparent;
    color: var(--kk-tag-bg, #666);
    border: 1.5px solid var(--kk-tag-bg, #666);
}

/* Ingredients */

.kk-drink-card__ingredients {
    font-family: var(--kk-font-gilroy);
    font-size: 15px;
    font-weight: 600;
    font-style: italic;
    color: var(--kk-color-text);
    margin: 0 0 4px;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

/* Extras */

.kk-drink-card__extras {
    margin: 4px 0;
}

.kk-drink-card__extra {
    font-family: var(--kk-font-gilroy);
    font-size: 15px;
    font-weight: 800;
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.3px;
    color: var(--kk-color-text);
}

/* Allergens */

.kk-drink-card__allergens {
    font-family: var(--kk-font-gilroy);
    font-size: 14px;
    font-weight: 600;
    font-style: italic;
    color: var(--kk-color-allergen-text);
    margin: 4px 0 0;
}

/* ============================================
   Simple Drink Listing (reuses food-item classes)
   ============================================ */

.kk-drink-simple__prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    gap: 2px;
}

.kk-drink-simple__price-alt {
    font-family: var(--kk-font-gilroy);
    font-size: 14px;
    font-weight: 700;
    color: var(--kk-color-text);
    white-space: nowrap;
}

.kk-drink-simple__price-alt em {
    font-style: normal;
}

/* ============================================
   Food List
   ============================================ */

.kk-food-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kk-food-item {
    padding: 6px 0;
    border-bottom: none;
}

.kk-food-item__main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.kk-food-item__name {
    font-family: var(--kk-font-gilroy);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--kk-color-text);
}

.kk-allergen-code {
    color: var(--kk-color-allergen-code);
    font-family: var(--kk-font-gilroy);
    font-weight: 700;
    font-size: 18px;
    margin-left: 2px;
}

.kk-dairy-free {
    color: var(--kk-color-allergen-code);
    font-weight: 700;
}

.kk-food-item__price {
    font-family: var(--kk-font-gilroy);
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
    text-align: right;
    color: var(--kk-color-text);
}

.kk-food-item__variants {
    font-family: var(--kk-font-gilroy);
    font-size: 18px;
    font-weight: 700;
    color: var(--kk-color-text);
    margin: 2px 0 0;
    line-height: 1.4;
}

.kk-food-item__desc {
    font-family: var(--kk-font-gilroy);
    font-size: 16px;
    font-weight: 600;
    font-style: italic;
    color: var(--kk-color-text);
    margin: 2px 0 0;
    line-height: 1.4;
}

/* Sauce note */

.kk-sauce-note {
    font-family: var(--kk-font-gilroy);
    font-size: 18px;
    font-weight: 600;
    font-style: italic;
    color: var(--kk-color-sauce);
    margin: 20px 0;
    line-height: 1.4;
}

/* ============================================
   Allergen Legend
   ============================================ */

.kk-allergen-legend {
    margin-top: 40px;
    padding: 20px 24px 0;
}

.kk-allergen-legend__codes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-bottom: 20px;
    font-family: var(--kk-font-gilroy);
    font-size: 16px;
    font-weight: 700;
    color: var(--kk-color-text);
    line-height: 1.4;
}

.kk-allergen-legend__item strong {
    color: var(--kk-color-text);
}

.kk-allergen-legend__disclaimer,
.kk-allergen-legend__codes {
    border-top: 4px solid var(--kk-color-divider);
    padding-top: 20px;
}

.kk-allergen-legend__disclaimer p {
    font-family: var(--kk-font-gilroy);
    font-size: 16px;
    font-weight: 600;
    color: var(--kk-color-text);
    line-height: 1.4;
    margin: 0;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 480px) {
    .kk-section {
        padding: 0 16px;
    }

    .kk-tab {
        padding: 10px 16px;
        font-size: 16px;
    }

    .kk-section-title {
        font-size: 22px;
    }

    .kk-drink-card__image {
        width: 52px;
        height: 52px;
    }

    .kk-allergen-legend {
        padding: 20px 16px 0;
    }
}
