/* ── PAGE WRAPPER ── */
.page-wrapper {
    max-width: 1224px;
    width: calc(100% - 120px);
    margin: 120px auto;
}

/* ── shop-hero ── */
.shop-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

.shop-label {
   font-family: inherit;
    font-weight: 500;
    font-style: normal;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -1.5%;
    color: var(--brand-color);
    margin-bottom: 4px;
}

.shop-hero h1 {
    margin-bottom: 32px;
    color: var(--color-500);
    font-weight: 600;
    font-style: SemiBold;
    font-size: 40px;
    line-height: 48px;
    letter-spacing: -1%;
}

.shop-hero p {
    color: var(--color-500);
    max-width: 646px;
}

.shop-banner{
    width: min(530px, 35vw);
    aspect-ratio: 4/3;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: #d4e8d0 url('/wp-content/themes/momc/assets/images/shop-banner.webp') center/cover;
}

/* ── Brand Tabs ── */
.brand-tabs {
    padding: 28px 0 0;
    display: flex;
    gap: 10px;
}

.brand-tab {
    padding: 8px 24px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-300);
    background: var(--color-white);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    transition: all .2s;
    color: var(--color-400);
}

.brand-tab.active {
    border-color: var(--brand-color);
    color: var(--brand-color);
    background: var(--color-white);
}

.brand-tab:hover:not(.active) {
    border-color: #aaa;
    color: var(--color-500);
}

/* ── Main Panel ── */
.panel {
    margin: 20px 0 48px;
    background: var(--color-white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.panel-inner {
    display: flex;
}

/* ── Sidebar ── */
.sidebar {
    width: 160px;
    flex-shrink: 0;
    border-right: 1px solid var(--color-200);
}

.sidebar-label {
    font-family: inherit;
    font-weight: 600;
    font-style: normal;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 0%;
    color: var(--color-500);
    padding: 20px 32px 20px 14px;
}

.shop-type-btn {
    display: block;
    width: 100%;
    padding: 10px 20px;
    text-align: left;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--color-400);
    background: none;
    border: none;
    cursor: pointer;
    transition: all .18s;
    border-left: 3px solid transparent;
}

.shop-type-btn.active {
    color: var(--brand-color);
    font-weight: 600;
    border-left-color: var(--brand-color);
    background: var(--brand-color-light);
}

.shop-type-btn:hover:not(.active) {
    background: var(--bg);
    color: var(--color-500);
}

/* ── Content ── */
.content {
    flex: 1;
    padding: 24px 28px;
    min-width: 0;
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.content-title {
    font-family: inherit;
    font-weight: 600;
    font-style: normal;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0%;
    color: var(--brand-color);
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-label {
    font-family: inherit;
    font-weight: 500;
    font-style: normal;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.6%;
    color: var(--color-400);
}

.filter-pill {
    background: var(--brand-color);
    color: var(--color-white);
    font-family: inherit;
    font-weight: 500;
    font-style: normal;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.6%;
    padding: 4px 14px;
    border-radius: 999px;
    border: none;
    cursor: default;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: 120px;
    border: 1px solid var(--color-300);
    background: var(--color-white);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-400);
    cursor: pointer;
    transition: border-color .18s;
}

.filter-btn:hover {
    border-color: var(--brand-color);
}

.filter-btn svg {
    width: 14px;
    height: 14px;
}

/* ── Table ── */
.shop-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.shop-table thead th {
    text-align: left;
    padding: 10px 0 10px;
    font-family: inherit;
    font-weight: 600;
    font-style: normal;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -1.5%;
    letter-spacing: .06em;
    color: var(--color-900);
    border-bottom: 1px solid var(--color-200);
}

.shop-table tbody tr {
    border-bottom: 1px solid var(--color-200);
    transition: background .15s;
}

.shop-table tbody tr:last-child {
    border-bottom: none;
}

.shop-table tbody tr:hover {
    background: var(--bg);
}

.shop-table td {
    padding: 13px 8px 13px 0;
    vertical-align: middle;
    font-family: inherit;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -1.5%;
    color: var(--color-900);
}

.phno-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.phno-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap; /* keep number + icon together */
}

.phno-num {
    white-space: nowrap;
}

.copy-icon {
    width: 24px;
    height: 24px;
    background: var(--brand-color);
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    border: none;
    position: relative;
    transition: background .15s;
}

.copy-icon:hover {
    filter: brightness(0.88);
}

.copy-icon svg {
    width: 13px;
    height: 13px;
    fill: #fff;
}

.copy-icon .tooltip {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
}

.copy-icon.copied .tooltip {
    opacity: 1;
}

/* Online shops */
.online-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.online-table thead th {
    text-align: left;
    padding: 10px 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-400);
    border-bottom: 1px solid var(--color-200);
}

.online-table tbody tr {
    border-bottom: 1px solid var(--color-200);
    transition: background .15s;
}

.online-table tbody tr:last-child {
    border-bottom: none;
}

.online-table tbody tr:hover {
    background: var(--bg);
}

.online-table td {
    padding: 14px 8px 14px 0;
    vertical-align: middle;
}

.visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--brand-color);
    background: var(--color-white);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--brand-color);
    text-decoration: none;
    cursor: pointer;
    transition: border-color .18s, color .18s, background .18s;
}

.visit-btn:hover {
    background: var(--brand-color);
    color: #fff;
}

.visit-btn svg {
    width: 13px;
    height: 13px;
}

/* No results */
.no-results {
    text-align: center;
    padding: 48px 0;
    color: var(--color-400);
    font-size: 14px;
}

/* ── Filter Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

body.modal-open {
    overflow: hidden; /* prevent the page behind the modal from scrolling */
}

.modal {
    background: var(--color-white);
    border-radius: 18px;
    padding: 28px;
    width: min(420px, 92vw);
    transform: translateY(16px) scale(.97);
    transition: transform .22s;
    box-shadow: 0 12px 48px rgba(0, 0, 0, .18);
}

.modal-overlay.open .modal {
    transform: none;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal-head h2 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #444;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    line-height: 1;
}

.modal-group {
    margin-bottom: 20px;
}

.modal-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.modal-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--color-200);
    background: var(--color-white);
    font-size: 14px;
    font-family: inherit;
    color: var(--color-500);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%236b7280' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
    outline: none;
    transition: border-color .18s;
}

.modal-select:focus {
    border-color: var(--brand-color);
}

.modal-select:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.modal-select option {
    padding: 12px;
    font-size: 15px;
    color: #374151;
    background-color: #ffffff;
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

/* ── Custom Select Dropdown Skin ── */

/* Hide native select elements in the modal to make room for custom UI */
.modal-group select.modal-select {
    display: none !important;
}

/* Custom Dropdown UI Wrapper */
.custom-select-container {
    position: relative;
    width: 100%;
    margin-top: 4px;
}

/* Trigger Button - Designed to match capsule style in image */
.custom-select-trigger {
    width: 100%;
    padding: 12px 20px;
    background: var(--color-white);
    border: 1.5px solid var(--color-200);
    border-radius: 999px; /* Capsule shape */
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: border-color .18s, box-shadow .18s;
}

.custom-select-trigger:hover {
    border-color: var(--brand-color);
}

.custom-select-container.open .custom-select-trigger {
    border-color: var(--brand-color);
}

.custom-select-text {
    font-size: 14px;
    color: var(--color-500);
    font-weight: 400;
}

.custom-select-caret {
    width: 12px;
    height: 12px;
    color: var(--color-900);
    transition: transform .2s;
}

.custom-select-container.open .custom-select-caret {
    transform: rotate(180deg);
}

/* Dropdown Options List Container - Deeply rounded matching image */
.custom-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 24px; /* Deeply rounded corners matching the attached image */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-200);
    overflow: hidden;
    z-index: 1010;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
    max-height: 250px;
    overflow-y: auto;
    overscroll-behavior: contain; /* stop scroll from chaining to the page behind it */
}

.custom-select-container.open .custom-select-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Used when there isn't enough room below the trigger — menu opens upward instead */
.custom-select-container.flip-up .custom-select-menu {
    top: auto;
    bottom: calc(100% + 8px);
    transform: translateY(8px);
}

.custom-select-container.flip-up.open .custom-select-menu {
    transform: translateY(0);
}

/* Individual Custom Option Items */
.custom-select-option {
    padding: 14px 24px;
    font-size: 15px;
    color: var(--color-500);
    cursor: pointer;
    border-bottom: 1px solid var(--color-200);
    transition: background .15s, color .15s;
    text-align: left;
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background-color: var(--bg);
    color: var(--brand-color);
}

.custom-select-option.selected {
    background-color: var(--brand-color-light);
    color: var(--brand-color);
    font-weight: 600;
}

/* Handle disabled state seamlessly */
.custom-select-container.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.btn-cancel {
    padding: 13px;
    border-radius: 999px;
    border: 1.5px solid var(--color-200);
    background: var(--color-white);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .18s;
    font-family: inherit;
}

.btn-cancel:hover {
    border-color: #aaa;
}

.btn-apply {
    padding: 13px;
    border-radius: 999px;
    border: none;
    background: var(--brand-color);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s;
    font-family: inherit;
}

.btn-apply:hover {
    filter: brightness(0.88);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .shop-hero {
        padding: 40px 36px 32px;
    }

    .brand-tabs {
        padding: 24px 36px 0;
    }

    .panel {
        margin: 16px 0 40px;
    }
}

@media (max-width: 768px) {
    
    .page-wrapper {
        margin: 80px auto;
    }
    
    .shop-hero {
        flex-direction: column-reverse;
        padding: 24px 20px 20px;
        gap: 20px;
    }

    .shop-banner{
        width: 100%;
        aspect-ratio: 16/9;
        border-radius: var(--radius-sm);
    }

    .shop-hero h1 {
        font-size: clamp(22px, 6vw, 30px);
    }

    .shop-hero p {
        max-width: 100%;
    }

    .brand-tabs {
        padding: 20px 20px 0;
        flex-wrap: wrap;
    }

    .brand-tab {
        font-size: 13px;
        padding: 7px 18px;
    }

    .panel {
        margin: 16px 0 32px;
        border-radius: 12px;
    }

    .panel-inner {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--color-200);
        padding: 16px 0 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0;
    }

    .sidebar-label {
        display: none;
    }

    .shop-type-btn {
        flex: 1;
        text-align: center;
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 12px 8px;
        font-weight: 500;
        font-size: 18px;
    }

    .shop-type-btn.active {
        border-left: none;
        border-bottom-color: var(--brand-color);
        background: transparent;
    }

    .content {
        padding: 16px 16px 20px;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .content-title {
        font-size: 15px;
    }

    .filter-bar {
        width: 100%;
        justify-content: flex-start;
    }

    .shop-table,
    .online-table {
        font-size: 12.5px;
    }

    .shop-table thead th:nth-child(1),
    .shop-table td:nth-child(1) {
        display: none;
    }

    .visit-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .shop-hero {
        padding: 20px 16px 16px;
    }

    .brand-tabs {
        padding: 16px 16px 0;
        gap: 8px;
    }

    .brand-tab {
        font-size: 12.5px;
        padding: 6px 14px;
    }

    .panel {
        margin: 12px 0 28px;
    }

    .content {
        padding: 14px 12px 16px;
    }

    .shop-type-btn {
        font-size: 12px;
        padding: 10px 6px;
    }

    .filter-label {
        font-size: 11.5px;
    }

    .filter-pill {
        font-size: 11px;
        padding: 3px 10px;
    }

    .filter-btn {
        font-size: 12px;
        padding: 5px 12px;
    }

    .shop-table thead th:nth-child(1),
    .shop-table td:nth-child(1) {
        display: none;
    }

    .shop-table thead th,
    .shop-table td,
    .online-table thead th,
    .online-table td {
        font-size: 12px;
        padding: 10px 6px 10px 0;
    }
}