.qcm-app {
    max-width: 550px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    color: #222 !important;
}

.qcm-app,
.qcm-header,
.qcm-products,
.qcm-modal,
.qcm-drawer {
    font-family: 'Inter', sans-serif;
}

.qcm-header {
    max-width: 550px;
    margin: 0 auto;
}

.qcm-extra-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    gap: 8px;
}

.qcm-extra-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qcm-extra-title {
    font-size: 15px;
}

.qcm-extra-price {
    white-space: nowrap;
    font-size: 18px;
    font-weight: 700;
    color: #1f1f1f;
}

.qcm-info-item svg {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 1px;
}

.qcm-cover {
    position: relative;
    max-height: 150px;
    overflow: hidden;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qcm-lang-selector {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    gap: 6px;
}

.qcm-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.qcm-modal-bottom-row {
    display: flex;
    align-items: center !important;
    gap: 10px;
    margin-top: 15px;
    padding-top: 10px;
}

.qcm-modal-col.price-col {
    width: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.qcm-modal-col.qty-col {
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qcm-modal-col.btn-col {
    width: 50%;
}

.qcm-modal-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.qcm-modal-right {
    width: 50%;
    display: flex;
    justify-content: flex-end;
}

.qcm-lang-btn {
    padding: 6px 12px;
    border-radius: 30px;
    background: #f7f9fc;
    border: 1px solid #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: 0.2s;
    color: #1f1f1f;
}

.qcm-lang-btn.active {
    background: #1f1f1f;
    border-color: #1f1f1f;
    color: #fff;
}

.qcm-lang-toggle select {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 4px 10px;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.qcm-lang-toggle select:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.qcm-info {
    padding: 12px;
    text-align: left;
}

.qcm-info h1 {
    font-size: 26px;
    font-weight: 400;
    margin: 8px 0;
}

.qcm-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: left;
}

.qcm-info-item {
    background: #f7f9fc;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 14px;
}

.qcm-categories {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 5px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    scroll-behavior: smooth;
}

.qcm-cat {
    flex-shrink: 0;
    border: 1px solid #ccc;
    border-radius: 999px;
    padding: 6px 14px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    color: #1f1f1f;
}

.qcm-cat:hover {
    border-color: #cc0000;
    color: #cc0000;
}

.qcm-cat.active {
    background: #cc0000;
    color: #fff;
    border-color: #cc0000;
}

.qcm-categories-fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
}

.qcm-categories-placeholder {
    height: 52px;
    display: none;
}

.qcm-categories-fixed ~ .qcm-categories-placeholder {
    display: block;
}

.qcm-products {
    max-width: 550px;
    margin: 16px auto;
    padding: 0 12px;
}

.qcm-category-title {
    margin: 18px 8px 10px;
    font-size: 24px;
    font-weight: 600;
}

.qcm-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    padding: 14px;
    border: 1px solid #e8e8e8;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qcm-item-main {
    display: block;
    border: none;
    background: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    width: 100%;
}

.qcm-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 12px;
}

.qcm-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.qcm-labels {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.qcm-label {
    background: #cc0000;
    color: #fff;
    font-size: 12px;
    border-radius: 999px;
    padding: 2px 8px;
    font-weight: 600;
}

.qcm-label-customizable {
    background: #009688;
    color: #fff;
    font-size: 12px;
    border-radius: 999px;
    padding: 2px 8px;
    font-weight: 600;
}

.qcm-item-body {
    padding: 4px 2px;
}

.qcm-item-title {
    margin: 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #222 !important;
}

.qcm-desc {
    font-size: 14px;
    color: #555;
    margin: 0 0 8px;
}

.qcm-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.qcm-chip {
    background: #f7f9fc;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
}

.qcm-chip-alt {
    background: #fff3cd;
    border: 1px solid #ffe58f;
    color: #856404;
}

.qcm-note {
    margin-top: 6px;
    font-size: 13px;
    color: #cc0000;
}

.qcm-price-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 6px;
}

.qcm-price {
    font-size: 20px;
    font-weight: 600;
}

.qcm-bottom-right .qcm-add {
    padding: 6px 12px;
    font-size: 14px;
    white-space: nowrap;
}

.qcm-bottom-right .qcm-add {
    background: #1f1f1f;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    white-space: nowrap;
}

.qcm-bottom-right .qcm-add:hover {
    background: #2090ff;
}

.qcm-bottom-right .qcm-add:disabled {
    background: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

.qcm-bottom-row {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qcm-bottom-left {
    display: flex;
    gap: 8px;
    align-items: center;
}

.qcm-old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
}

.qcm-modal-old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 16px;
}

.qcm-actions {
    margin-top: 6px;
}

.qcm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.qcm-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.qcm-modal {
    background: #fff;
    border-radius: 22px;
    width: 95vw;
    max-width: 480px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    position: relative;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
    opacity: 0;
    transform: scale(0.95);
}

.qcm-modal-overlay.open .qcm-modal {
    opacity: 1;
    transform: scale(1);
}

.qcm-modal-img {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 14px;
    aspect-ratio: 3/2;
    object-fit: cover;
}

.qcm-modal-labels {
    display: flex;
    gap: 6px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.qcm-modal-img-wrap {
    position: relative;
    width: 100%;
}

.qcm-modal-img-wrap .qcm-modal-img {
    width: 100%;
    border-radius: 14px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.qcm-modal-img-wrap .qcm-modal-labels {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 5;
}

.qcm-modal-labels .qcm-label,
.qcm-modal-labels .qcm-label-customizable {
    background: #009688;
    color: #fff;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.qcm-modal-close {
    position: absolute;
    top: 20px;
    right: 22px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

.qcm-modal-price-row {
    margin-top: 10px;
}

.qcm-modal-price {
    font-size: 18px;
    font-weight: 700;
    color: #1f1f1f;
}

.qcm-modal-right .qcm-add {
    background: #1f1f1f;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: 0.25s;
}

.qcm-modal-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.qcm-modal-desc {
    font-size: 14px;
    color: #444;
}

.qcm-modal-note {
    margin-top: 6px;
    font-size: 13px;
    color: #cc0000;
}

.qcm-modal-qty {
    display: flex;
    align-items: center;
    margin-top: 10px !important;
    padding-top: 0 !important;
    gap: 2px;
}

.qcm-modal-qty button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.qcm-modal-qty .qcm-qty-value {
    min-width: 15px;
    text-align: center;
    font-size: 16px;
    line-height: 32px;
}

.qcm-extras-box {
    border-top: 1px dashed #eee;
    margin-top: 8px;
    padding-top: 8px;
    display: grid;
    gap: 6px;
}

.qcm-extra {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    font-size: 14px;
}

.qcm-extra input[type='checkbox'] {
    margin-right: 6px;
}

.qcm-modal-add {
    width: 100%;
    margin-top: 10px;
    border-radius: 10px;
    border: none;
    padding: 10px 14px;
    background: #1f1f1f;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.qcm-cart {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #1f1f1f;
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    padding: 10px 16px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 9998;
    opacity: 0;
    transform: translateY(150%);
    pointer-events: none;
}

.qcm-cart.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.qcm-cart-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qcm-drawer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    z-index: 9999;
}

.qcm-drawer.open {
    opacity: 1;
    pointer-events: auto;
}

.qcm-drawer-inner {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 92%;
    max-width: 420px;
    background: #fff;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #eee;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.qcm-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}

.qcm-drawer-title {
    font-weight: 700;
}

.qcm-drawer-close {
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
}

.qcm-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qcm-line {
    display: grid;
    grid-template-columns: 1fr 120px 70px;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
}

.qcm-line-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qcm-line-title {
    font-size: 14px;
    font-weight: 600;
}

.qcm-line-extras {
    font-size: 12px;
    color: #777;
}

.qcm-line-ctrls {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.qcm-line-ctrls > div {
    display: flex;
    gap: 6px;
    align-items: center;
}

.qcm-line-ctrls button {
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 6px;
    padding: 3px 6px;
    cursor: pointer;
    font-size: 15px;
}

.qcm-line-qty {
    min-width: 22px;
    text-align: center;
    font-weight: 600;
}

.qcm-line-ctrls button:last-child {
    color: #d33;
    border: none;
    background: transparent;
    font-size: 18px;
    padding: 0 4px;
}

.qcm-line-price {
    text-align: right;
    font-size: 15px;
    font-weight: 700;
}

.qcm-drawer-footer {
    padding: 14px 16px;
    border-top: 1px solid #eee;
    justify-content: flex-end;
    align-items: center;
}

.qcm-drawer-total-label,
.qcm-drawer-total-amount {
    display: inline-block;
    vertical-align: middle;
    font-size: 18px;
}

.qcm-drawer-total-label {
    margin-right: 6px;
}

.qcm-drawer-total-amount {
    font-weight: 700;
    font-size: 18px;
}

.qcm-cart-message {
    font-size: 12px;
    background: #f7f7f7;
    border-radius: 8px;
    padding: 8px 10px;
    color: #555;
    margin-top: 10px;
}

.qcm-empty-cart {
    font-size: 14px;
    color: #666;
}

.qcm-app-container {
    margin-top: -25px;
    padding-top: 0 !important;
    overflow-x: hidden;
}

@media (max-width: 600px) {
    .qcm-app,
    .qcm-header,
    .qcm-products {
        max-width: 100%;
    }

    .qcm-drawer-inner {
        width: 100%;
        max-width: 100%;
    }
}

body.qcm-no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
    position: fixed !important;
    width: 100%;
    top: 0;
    left: 0;
}

body.qcm-modal-open {
    overflow: hidden !important;
    touch-action: none;
}

html.qcm-lock,
body.qcm-lock {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: none !important;
}

body.qcm-locked {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

.qcm-footer {
    text-align: center;
    padding: 18px 0;
    margin-top: 40px;
    font-size: 13px;
    color: #777;
    opacity: 0.8;
}

.qcm-footer a {
    color: #1e90ff;
    text-decoration: none;
}

.qcm-footer a:hover {
    text-decoration: underline;
}

.qcm-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.qcm-popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    position: relative;
}

.qcm-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 30px;
}

.qcm-info-icon {
    cursor: pointer;
    vertical-align: middle;
}
.qcm-drawer-service-label {
    font-size: 14px;
}
.qcm-service-charge-amount {
    font-size: 16px;
    font-weight: 400;
}