body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f2f2f4;
    color: #1a1a1a;
}

.master-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.master-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    max-width: 720px;
    margin: 0 auto;
}

.master-topbar-left {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 2px;
}

.master-drawer-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.master-topbar-icon {
    color: #fff;
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.master-topbar-spacer {
    width: 40px;
    height: 40px;
}

.master-brand {
    flex: 1;
    min-width: 0;
    text-align: center;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.master-brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15);
}

.master-brand-text {
    min-width: 0;
    line-height: 1.2;
}

.master-topbar-lang {
    flex: 0 1 auto;
    min-width: 36px;
    max-width: 42%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.master-topbar-lang .language-selector-current {
    color: #fff;
    padding: 4px 8px;
    font-size: 0.75rem;
}

.master-banner-wrap {
    margin: 0;
    padding: 0;
}

.master-banner {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.master-banner-track {
    display: flex;
    overflow: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    border-radius: 0 0 18px 18px;
}

.master-banner-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    height: 220px;
    background: #111;
}

.master-banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.master-banner-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.master-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    padding: 0;
    cursor: pointer;
}

.master-banner-dot.active {
    background: #fff;
    width: 22px;
    border-radius: 4px;
}

.master-featured-wrap {
    max-width: 720px;
    margin: -24px auto 0;
    padding: 0 12px 16px;
    position: relative;
    z-index: 2;
}

.master-featured-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px 12px 18px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.master-featured-title {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 14px;
}

.master-featured-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.master-featured-item {
    flex: 0 0 42%;
    max-width: 160px;
    background: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #eee;
}

.master-featured-img-wrap {
    height: 100px;
    overflow: hidden;
}

.master-featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.master-featured-meta {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.master-featured-title-row {
    width: 100%;
    line-height: 1.35;
}

.master-featured-title-row .master-featured-name {
    display: inline;
    margin-right: 4px;
    vertical-align: middle;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.25;
    color: #222;
}

.master-featured-title-row .master-product-tag-icons {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    vertical-align: middle;
}

.master-featured-name {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.25;
    color: #222;
}

.master-featured-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color, #c62828);
}

.master-stock-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.master-featured-img-wrap {
    position: relative;
}

.master-categories-section {
    max-width: 720px;
    margin: 0 auto;
    padding: 8px 12px 20px;
}

.master-section-heading {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 18px 0 14px;
    color: #1a1a1a;
}

.master-category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.master-category-tile {
    position: relative;
    border: none;
    border-radius: 14px;
    min-height: 110px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.master-category-tile-overlay {
    position: absolute;
    inset: 0;
}

.master-category-tile-title {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    padding: 12px;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
    line-height: 1.2;
}

.master-menu-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 8px 12px 20px;
}

#menuContainer .section-title {
    background: none;
    -webkit-text-fill-color: #333;
    color: #333;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.master-footer {
    background: var(--primary-color, #c62828);
    border-top: none;
    padding: 0;
    margin-top: 24px;
}

.master-footer-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.master-footer-inner > *:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.master-footer-inner > * {
    padding: 16px 16px;
}

.master-footer-inner > *:last-child {
    padding-bottom: 24px;
}

.master-footer-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 0;
}

.master-footer-social .social-link {
    color: #fff;
    font-size: 1.25rem;
}

.master-footer-social .social-link:hover {
    color: rgba(255, 255, 255, 0.88);
}

.master-footer .master-price-update {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
}

.master-footer .footer-copyright .footer-link {
    color: rgba(255, 255, 255, 0.92);
}

.master-footer .footer-copyright .footer-link:hover {
    color: #fff;
}

.product-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1500;
    padding: 20px;
}

.product-popup-overlay.active {
    display: flex;
}

.product-popup {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    z-index: 10;
}

.popup-product-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.popup-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.popup-product-info {
    padding: 22px;
}

.popup-product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.popup-product-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

.popup-variants-list {
    margin-bottom: 12px;
}

.popup-variant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
}

.popup-variant-price {
    color: var(--primary-color, #c62828);
    font-weight: 600;
}

.popup-product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.popup-price-current {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color, #c62828);
}

.popup-price-old {
    font-size: 1.1rem;
    color: #999;
    text-decoration: line-through;
}

.popup-product-actions {
    margin-top: 18px;
}

.btn-add-to-cart-popup {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: var(--primary-color, #c62828);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.groups-container .group-title {
    color: var(--primary-color, #c62828);
}

body.master-category-open {
    background: #fff;
}

body.master-category-open #menuContainer .master-category-nav-sticky {
    position: sticky;
    top: var(--master-topbar-height, 56px);
    z-index: 50;
    background: #fff;
    margin-left: -12px;
    margin-right: -12px;
    width: calc(100% + 24px);
    box-shadow: 0 6px 14px -12px rgba(0, 0, 0, 0.18);
}

#menuContainer .back-to-main {
    width: calc(100% + 24px);
    max-width: none;
    margin-left: -12px;
    margin-right: -12px;
    margin-bottom: 0;
    background: #fff;
    color: #111;
    border-radius: 0;
    padding: 12px 16px;
    font-weight: 600;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: none;
}

body.master-category-open #menuContainer .master-category-nav-sticky .back-to-main {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

#menuContainer .back-to-main:hover {
    background: #fafafa;
    color: #111;
}

#menuContainer .back-to-main i {
    color: #111;
}

#menuContainer .category-slider-container {
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #eee;
    padding: 12px 16px 16px;
}

#menuContainer.menu-container {
    padding-left: 12px;
    padding-right: 12px;
}

.master-product-list {
    background: #fff;
    margin: 0 -12px;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
}

.master-product-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 10px 12px;
    background: #ffffff;
    border-bottom: 1px solid #e3e6ed;
    cursor: pointer;
}

.master-product-row.out-of-stock {
    opacity: 0.72;
    cursor: not-allowed;
}

.master-product-row-media {
    position: relative;
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
}

.master-product-row-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.master-product-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    max-width: 78%;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 3px;
    line-height: 1.2;
    text-align: right;
    letter-spacing: 0.02em;
}

.master-product-badge-stock {
    left: auto;
    right: 4px;
    font-size: 0.6rem;
    font-weight: 600;
}

.master-product-row-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
}

.master-product-row-body {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    flex: 1;
    min-width: 0;
}

.master-product-row-left {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.master-product-title-row {
    width: 100%;
    line-height: 1.35;
}

.master-product-title-row .master-product-title-text {
    display: inline;
    margin-right: 4px;
    vertical-align: middle;
}

.master-product-title-row .master-product-tag-icons {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    vertical-align: middle;
}

.master-product-tag-icons {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.master-tag-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.06);
    color: var(--primary-color, #c62828);
    cursor: default;
    outline: none;
    flex-shrink: 0;
}

.master-tag-icon-wrap:hover,
.master-tag-icon-wrap:focus-visible {
    background: rgba(0, 0, 0, 0.1);
}

.master-tag-icon {
    font-size: 0.72rem;
    line-height: 1;
}

.master-tag-icon-wrap::after {
    content: attr(data-label);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(20, 20, 20, 0.92);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 30;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.master-tag-icon-wrap:is(:hover, :focus-visible, .is-open)::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.popup-product-tags {
    margin-top: 12px;
}

.popup-product-tags .master-popup-tag-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.popup-product-tags .master-popup-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.06);
    color: #1a1a1a;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.25;
    max-width: 100%;
}

.popup-product-tags .master-popup-tag-ico {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--primary-color, #c62828);
}

.popup-product-tags .master-popup-tag-label {
    word-break: break-word;
}

.master-product-title-text {
    font-size: 0.78rem;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
    text-align: left;
}

.master-product-desc-visible {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 400;
    color: #555;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.master-product-variants-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
}

.master-product-variant-line {
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.master-product-variant-name-part {
    color: #555;
    font-weight: 500;
}

.master-product-variant-sep {
    color: #888;
    font-weight: 400;
}

.master-product-variant-price-part {
    font-weight: 600;
    color: var(--primary-color, #c62828);
    white-space: nowrap;
}

.master-product-row-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    align-self: stretch;
    min-width: 5.5rem;
    max-width: 42%;
}

.master-product-price-visible {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
    line-height: 1.2;
}

.master-product-price-visible .price-old {
    font-size: 0.68rem;
    color: #888;
    text-decoration: line-through;
}

.master-product-price-visible .price-current {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-color, #c62828);
}

.master-product-row-actions {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    flex-shrink: 0;
    width: auto;
    margin-top: auto;
    padding-top: 6px;
}

.master-product-cart-btn {
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 8px;
    background: var(--primary-color, #c62828);
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
}

.master-product-cart-btn:hover {
    filter: brightness(1.06);
    color: #fff;
}

.master-product-cart-btn i {
    font-size: 0.65rem;
}

#menuContainer .master-product-list .master-product-row.product-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
    height: auto;
    min-height: 0;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    border: none;
    border-bottom: 1px solid #e3e6ed;
}

#menuContainer .master-product-list .master-product-row.product-card:hover {
    transform: none;
    box-shadow: none;
}

#menuContainer .master-product-list .master-product-row .product-image.master-product-row-media {
    height: 76px;
    width: 76px;
    min-height: 76px;
    max-height: 76px;
    flex: 0 0 76px;
    align-self: flex-start;
}

#menuContainer .master-product-list .master-product-row-main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
}

.master-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.master-drawer-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

.master-info-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: min(100%, 320px);
    max-width: 100%;
    height: 100%;
    z-index: 201;
    background: #fff;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.master-info-panel.is-open {
    transform: translateX(0);
}

.master-info-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--primary-color, #c62828);
    color: #fff;
    flex-shrink: 0;
}

.master-info-panel__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.master-info-panel__close {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 6px;
}

.master-info-panel__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 16px 24px;
    -webkit-overflow-scrolling: touch;
}

.master-info-panel__logo {
    text-align: center;
    margin-bottom: 16px;
}

.master-info-panel__logo img {
    max-width: 160px;
    max-height: 100px;
    object-fit: contain;
}

.master-info-panel__block {
    margin-bottom: 16px;
}

.master-info-panel__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.master-info-panel__text--html {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #1a1a1a;
}

.master-info-panel__line {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #1a1a1a;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.master-info-panel__line i {
    color: var(--primary-color, #c62828);
    margin-top: 2px;
    flex-shrink: 0;
}

.master-info-panel__line a {
    color: #1a1a1a;
    word-break: break-word;
    text-decoration: none;
}

.master-info-panel__line a:hover {
    color: #1a1a1a;
    text-decoration: none;
    opacity: 0.85;
}

.master-info-panel__social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e8e8e8;
}

.master-info-panel__social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color, #c62828);
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.master-info-panel__social .social-link i {
    color: #fff;
}

.master-info-panel__social .social-link:hover {
    color: #fff;
    text-decoration: none;
    opacity: 0.92;
}

html.master-drawer-locked,
body.master-drawer-locked {
    overflow: hidden;
    touch-action: none;
}
