/* Friend's — fullscreen produto (mockup) */

body:has(md-dialog.flb_produto_dialog) .flb_bottomnav,
main#panel:has(md-dialog.flb_produto_dialog) .flb_bottomnav {
    display: none !important;
}

md-dialog.flb_produto_dialog {
    border-radius: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000 !important;
    overflow: hidden;
}

.md-dialog-container:has(md-dialog.flb_produto_dialog) {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
}

.flb_produto_form {
    margin: 0;
    height: 100%;
}

.flb_produto_shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: #000;
    color: #fff;
}

.flb_produto_hero {
    position: relative;
    flex: 0 0 auto;
    height: 42vh;
    min-height: 220px;
    max-height: 360px;
    overflow: hidden;
    background: #111;
}

.flb_produto_hero_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flb_produto_hero_placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(232, 168, 48, 0.12), #111);
    color: rgba(232, 168, 48, 0.45);
    font-size: 42px;
}

.flb_produto_hero_shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 70%, #000 100%);
    pointer-events: none;
}

.flb_produto_icon_btn {
    position: absolute;
    top: calc(max(12px, env(safe-area-inset-top, 12px)) + 8px);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(232, 168, 48, 0.45);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    padding: 0;
}

.flb_produto_icon_btn--back {
    left: 14px;
}

.flb_produto_icon_btn--fav {
    right: 14px;
}

.flb_produto_badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(232, 168, 48, 0.35);
    color: #e8a830;
    font-size: 11px;
    font-weight: 600;
}

.flb_produto_badge i {
    font-size: 11px;
}

.flb_produto_loading {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    color: #e8a830;
    font-size: 28px;
}

.flb_produto_scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px 12px;
}

.flb_produto_head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.flb_produto_title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    flex: 1;
    min-width: 0;
}

.flb_produto_price_top {
    font-size: 18px;
    font-weight: 800;
    color: #e8a830;
    white-space: nowrap;
    padding-top: 4px;
}

.flb_produto_desc {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
}

.flb_produto_hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.4;
    color: #e8a830;
}

.flb_produto_hint i {
    margin-top: 2px;
    flex-shrink: 0;
}

.flb_produto_alert {
    margin-bottom: 12px;
    font-size: 12px;
}

.flb_produto_section {
    margin-bottom: 16px;
}

.flb_produto_section_label {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.flb_produto_alerg_list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.flb_produto_alerg_pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px 6px 6px;
    border-radius: 999px;
    border: 1px solid rgba(232, 168, 48, 0.28);
    background: rgba(232, 168, 48, 0.08);
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.flb_produto_alerg_pill img {
    width: 22px;
    height: 22px;
    border-radius: 999px;
}

.flb_produto_alerg_pill.is-user {
    border-color: rgba(229, 115, 115, 0.45);
    background: rgba(229, 115, 115, 0.12);
}

.flb_produto_tagline {
    margin: 4px 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 18px;
    color: #e8a830;
}

.flb_produto_section_head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
}

.flb_produto_section_head i {
    color: #e8a830;
    font-size: 15px;
}

.flb_produto_section_hint {
    margin: -4px 0 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.flb_produto_option {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    margin-bottom: 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #141414;
    cursor: pointer;
}

.flb_produto_option.is-qty {
    grid-template-columns: 24px 1fr auto;
    grid-template-rows: auto auto;
}

.flb_produto_option.is-qty .flb_produto_option_qty {
    grid-column: 2 / 4;
}

.flb_produto_option.is-active {
    border-color: rgba(232, 168, 48, 0.45);
    background: rgba(232, 168, 48, 0.06);
}

.flb_produto_option.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.flb_produto_option_check {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: transparent;
}

.flb_produto_option_check.is-radio {
    border-radius: 999px;
}

.flb_produto_option.is-active .flb_produto_option_check {
    border-color: #e8a830;
    background: #e8a830;
    color: #111;
}

.flb_produto_option_name {
    font-size: 13px;
    line-height: 1.3;
    color: #fff;
}

.flb_produto_option_price {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.flb_produto_option_price.is-included {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
}

.flb_produto_option_qty {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.flb_produto_option_qty button {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #1c1c1c;
    color: #fff;
    cursor: pointer;
}

.flb_produto_option_qty span {
    min-width: 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.flb_produto_notes {
    width: 100%;
    min-height: 72px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #141414;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    resize: vertical;
    box-sizing: border-box;
}

.flb_produto_notes::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.flb_produto_footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(10px);
}

.flb_produto_qty {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #141414;
    overflow: hidden;
    flex-shrink: 0;
}

.flb_produto_qty button {
    width: 38px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #e8a830;
    font-size: 18px;
    cursor: pointer;
}

.flb_produto_qty button:disabled {
    opacity: 0.35;
    cursor: default;
}

.flb_produto_qty span {
    min-width: 24px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
}

.flb_produto_cta {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 48px;
    padding: 8px 14px;
    border: 0;
    border-radius: 14px;
    background: #e8a830;
    color: #111;
    cursor: pointer;
}

.flb_produto_cta:disabled {
    opacity: 0.65;
}

.flb_produto_cta_main {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.flb_produto_cta_sub {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.75;
}
