/*
 * Public Menu Styling
 * File: assets/css/public-menu.css
 */

body.qdm-public-body {
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #334155;
}

/* Outer Wrapper - margin-top ကို 0 သို့ ပြောင်းလဲထားပါသည် */
.qdm-public-wrapper {
    max-width: 960px;
    margin: 0 auto 20px auto;
    background: #ffffff;
    min-height: 100vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Cover Banner */
.qdm-public-cover {
    width: 100%;
    height: 180px;
    background-color: #cbd5e1;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 0 !important;
}

/* Profile Section */
.qdm-public-profile-section {
    padding: 0 20px 20px 20px;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.qdm-public-avatar-box {
    position: relative;
    margin-top: -40px;
    margin-bottom: 12px;
    display: inline-block;
}

.qdm-public-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    object-fit: cover;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.qdm-public-shop-name {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.qdm-public-info-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    margin-bottom: 6px;
    line-height: 1.5;
}

.qdm-public-info-line svg {
    flex-shrink: 0;
}

/* Notice Bubble */
.qdm-public-notice-bubble {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f1f5f9;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    color: #334155;
    margin-top: 6px;
    margin-bottom: 10px;
}

/* Social Buttons Row */
.qdm-public-social-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.qdm-public-social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.qdm-public-social-btn:hover {
    transform: scale(1.05);
}

.qdm-social-tiktok { background-color: #000000; }
.qdm-social-fb { background-color: #1877f2; }
.qdm-social-viber { background-color: #7360f2; }

/* Category Filter Pills (Horizontal Touch Scroll Support) */
.qdm-public-categories-container {
    padding: 16px 20px;
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x !important;
    border-bottom: 1px solid #f1f5f9;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.qdm-public-categories-container::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
}

.qdm-cat-pill {
    padding: 6px 18px;
    background-color: #f1f5f9;
    color: #475569;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0 !important; /* Category ခလုတ်များ မကျုံ့သွားစေရန် */
    white-space: nowrap !important;
}

.qdm-cat-pill.active,
.qdm-cat-pill:hover {
    background-color: #0081cc;
    color: #ffffff;
}

/* Items Grid Container */
.qdm-public-menu-container {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.qdm-public-item-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qdm-public-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.qdm-public-item-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background-color: #f1f5f9;
}

.qdm-public-item-content {
    padding: 12px;
}

.qdm-public-item-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.qdm-public-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #0081cc;
}

.qdm-public-no-items {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    color: #94a3b8;
    font-size: 14px;
}

@media (max-width: 640px) {
    .qdm-public-wrapper {
        margin: 0;
        border-radius: 0;
    }
    .qdm-public-cover { height: 150px; }
    .qdm-public-profile-section { padding: 0 16px 16px 16px; }
    .qdm-public-categories-container { padding: 12px 16px; }
    .qdm-public-menu-container { padding: 16px; }
}