/* ==========================================================================
   YES! Shop — self-contained product listing styles
   Works with Botble ecommerce markup without Bootstrap / theme.css
   ========================================================================== */

.yes-shop-page {
    --yes-ink: #111;
    --yes-pink: #ff007f;
    --yes-yellow: #ffe600;
    --yes-bg: #fff1f6;
    color: var(--yes-ink);
    background-color: var(--yes-bg);
    background-image: radial-gradient(var(--yes-pink) 0.75px, transparent 0.75px), radial-gradient(var(--yes-yellow) 0.75px, var(--yes-bg) 0.75px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    min-height: 65vh;
}

.yes-shop-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 16px 64px;
}

/* Heading ---------------------------------------------------------------- */
.yes-shop-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    border-bottom: 4px solid var(--yes-ink);
    padding: 0 0 24px;
    margin-bottom: 32px;
}

.yes-shop-kicker {
    color: var(--yes-pink);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .12em;
    margin: 0 0 8px;
}

.yes-shop-heading h1 {
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 900;
    line-height: 1.05;
    margin: 0 0 12px;
}

.yes-shop-heading p:not(.yes-shop-kicker) {
    margin: 0;
    color: #555;
    font-weight: 500;
}

.yes-shop-back {
    border: 3px solid var(--yes-ink);
    background: var(--yes-yellow);
    color: var(--yes-ink);
    border-radius: 9px;
    box-shadow: 4px 4px 0 var(--yes-ink);
    padding: 10px 16px;
    font-weight: 900;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.yes-shop-back:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--yes-ink);
}

/* Listing layout --------------------------------------------------------- */
.yes-shop-page .yes-products-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.yes-shop-page .yes-products-layout-right .yes-products-sidebar { order: 2; }
.yes-shop-page .yes-products-layout-right .yes-products-main { order: 1; }
.yes-shop-page .yes-products-layout-right { grid-template-columns: minmax(0, 1fr) 300px; }

.yes-shop-page .yes-products-sidebar {
    position: sticky;
    top: 120px;
    min-width: 0;
}

/* Sidebar ---------------------------------------------------------------- */
.yes-shop-page .bb-shop-sidebar {
    background: #fff;
    border: 2px solid var(--yes-ink);
    border-radius: 14px;
    box-shadow: 5px 5px 0 var(--yes-ink);
    padding: 18px;
}

.yes-shop-page .bb-product-filter {
    padding: 0 0 16px;
    margin: 0 0 16px;
    border-bottom: 2px dashed rgba(17, 17, 17, .18);
}

.yes-shop-page .bb-product-filter:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.yes-shop-page .bb-product-filter-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    font-size: 16px;
    font-weight: 900;
    color: var(--yes-ink);
}

.yes-shop-page .bb-product-filter-title::before {
    content: "";
    width: 6px;
    height: 18px;
    border-radius: 2px;
    background: var(--yes-pink);
    flex: 0 0 auto;
}

.yes-shop-page .bb-product-filter-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.yes-shop-page .bb-product-filter-item + .bb-product-filter-item { margin-top: 4px; }

.yes-shop-page .bb-product-filter-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--yes-ink);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.yes-shop-page .bb-product-filter-link:hover,
.yes-shop-page .bb-product-filter-link.active {
    background: var(--yes-bg);
    color: var(--yes-pink);
}

.yes-shop-page .bb-product-filter-link svg { width: 18px; height: 18px; flex: 0 0 auto; }

.yes-shop-page .filter-checkbox .bb-product-filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.yes-shop-page .filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--yes-pink);
    cursor: pointer;
}

.yes-shop-page .filter-checkbox label {
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    color: #333;
}

/* Sidebar search */
.yes-shop-page .tp-sidebar-search { margin-bottom: 18px; }

.yes-shop-page .tp-sidebar-search-input {
    display: flex;
    align-items: stretch;
    border: 2px solid var(--yes-ink);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.yes-shop-page .tp-sidebar-search-input input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    color: var(--yes-ink);
}

.yes-shop-page .tp-sidebar-search-input button {
    flex: 0 0 44px;
    border: 0;
    border-left: 2px solid var(--yes-ink);
    background: var(--yes-yellow);
    color: var(--yes-ink);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.yes-shop-page .tp-sidebar-search-input button:hover { background: var(--yes-pink); color: #fff; }

/* Price slider */
.yes-shop-page .bb-product-price-filter-info { margin-top: 14px; }

.yes-shop-page .input-range-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 900;
    color: var(--yes-ink);
    background: var(--yes-bg);
    border: 2px solid var(--yes-ink);
    border-radius: 999px;
    padding: 4px 12px;
}

.yes-shop-page .price-slider,
.yes-shop-page .price-slider.ui-slider {
    position: relative;
    height: 6px;
    margin: 22px 8px 10px;
    background: #111;
    border-radius: 999px;
}

.yes-shop-page .price-slider .ui-slider-range {
    position: absolute;
    height: 100%;
    border-radius: 999px;
    background: var(--yes-pink);
}

.yes-shop-page .price-slider .ui-slider-handle {
    position: absolute;
    top: -8px;
    width: 22px;
    height: 22px;
    margin-left: -11px;
    border: 2px solid var(--yes-ink);
    border-radius: 50%;
    background: var(--yes-yellow);
    box-shadow: 2px 2px 0 var(--yes-ink);
    cursor: pointer;
    outline: none;
}

.yes-shop-page .price-slider .ui-slider-handle:focus { background: var(--yes-pink); }

/* Active filter chips */
.yes-shop-page .bb-product-filter-result {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.yes-shop-page .bb-product-filter-clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 2px solid var(--yes-ink);
    border-radius: 999px;
    background: #fff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 900;
    color: var(--yes-ink);
    text-decoration: none;
}

.yes-shop-page .bb-product-filter-clear:hover { background: var(--yes-pink); color: #fff; }

/* Top bar ---------------------------------------------------------------- */
.yes-shop-page .tp-shop-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #fff;
    border: 2px solid var(--yes-ink);
    border-radius: 14px;
    box-shadow: 5px 5px 0 var(--yes-ink);
    padding: 12px 16px;
    margin-bottom: 26px;
}

.yes-shop-page .tp-shop-top .row { display: contents; }

.yes-shop-page .tp-shop-top-left,
.yes-shop-page .tp-shop-top-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.yes-shop-page .tp-shop-top-tab .nav-tabs,
.yes-shop-page .tp-shop-top-tab ul {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    border: 0;
}

.yes-shop-page .tp-shop-top-tab .nav-link {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 2px solid var(--yes-ink);
    border-radius: 9px;
    background: #fff;
    color: var(--yes-ink);
    cursor: pointer;
    padding: 0;
}

.yes-shop-page .tp-shop-top-tab .nav-link svg { width: 18px; height: 18px; }

.yes-shop-page .tp-shop-top-tab .nav-link.active,
.yes-shop-page .tp-shop-top-tab .nav-link:hover {
    background: var(--yes-ink);
    color: var(--yes-yellow);
}

.yes-shop-page .tp-shop-top-result p {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #555;
}

.yes-shop-page .tp-shop-top-select select {
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid var(--yes-ink);
    border-radius: 9px;
    background-color: #fff;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding: 9px 34px 9px 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--yes-ink);
    cursor: pointer;
}

.yes-shop-page .tp-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--yes-ink);
    border-radius: 9px;
    background: var(--yes-yellow);
    color: var(--yes-ink);
    font-weight: 900;
    padding: 9px 14px;
    cursor: pointer;
}

.yes-shop-page .tp-filter-btn:hover { background: var(--yes-pink); color: #fff; }

.yes-shop-page .yes-top-filter-btn { display: none; }

/* Product grid ----------------------------------------------------------- */
.yes-shop-page .bb-product-items-wrapper { min-height: 120px; }

.yes-shop-page .yes-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
    margin-bottom: 30px;
}

.yes-shop-page .yes-products-list { display: grid; gap: 18px; margin-bottom: 30px; }

.yes-shop-page .loading-spinner {
    width: 42px;
    height: 42px;
    margin: 40px auto;
    border: 4px solid rgba(17, 17, 17, .15);
    border-top-color: var(--yes-pink);
    border-radius: 50%;
    animation: yes-spin .8s linear infinite;
}

@keyframes yes-spin { to { transform: rotate(360deg); } }

/* Product card ----------------------------------------------------------- */
.yes-shop-page .yes-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 2px solid var(--yes-ink);
    border-radius: 12px;
    background: #fff;
    box-shadow: 4px 4px 0 var(--yes-ink);
    transition: transform .15s ease, box-shadow .15s ease;
}

.yes-shop-page .yes-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 6px 7px 0 var(--yes-ink);
}

.yes-shop-page .yes-product-card__media {
    position: relative;
    overflow: hidden;
    background: var(--yes-yellow);
    border-bottom: 2px solid var(--yes-ink);
}

/* 圖片區由正方形改成 4:3，令商品卡唔會太高 */
.yes-shop-page .yes-product-card__image-link { display: block; aspect-ratio: 4 / 3; background: var(--yes-yellow); }

.yes-shop-page .yes-product-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }

.yes-shop-page .yes-product-card:hover .yes-product-card__image { transform: scale(1.04); }

/* 冇圖片嘅佔位符（商品卡／商品詳情通用） --------------------------------- */
.yes-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55em;
    width: 100%;
    height: 100%;
    background: #fff1f6;
}

.yes-no-image__text {
    color: #9aa1a9;
    font-size: .42em;
    font-weight: 700;
    letter-spacing: .08em;
}

.yes-shop-page .yes-no-image--card {
    min-height: 96px;
    font-size: 24px;
}

/* 購物車商品縮圖（96×96 方格） */
.yes-shop-page .yes-no-image--thumb {
    font-size: 22px;
}

.yes-shop-page .yes-no-image--detail {
    aspect-ratio: 1 / 1;
    font-size: 52px;
}

/* Blog 卡片（.yes-blog-thumb 本身已經 relative + 有底色） */
.yes-no-image--blog {
    position: absolute;
    inset: 0;
    font-size: 34px;
}

.yes-shop-page .yes-product-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px 12px;
    flex: 1 1 auto;
}

.yes-shop-page .yes-product-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.4;
}

.yes-shop-page .yes-product-card__title a { color: var(--yes-ink); text-decoration: none; }
.yes-shop-page .yes-product-card__title a:hover { color: var(--yes-pink); }

.yes-shop-page .yes-product-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--yes-pink);
    font-size: 17px;
    font-weight: 900;
    margin-top: auto;
}

.yes-shop-page .yes-product-card__price del { color: #999; font-size: 13px; font-weight: 700; }

/* Card "add to cart" button ---------------------------------------------- */
.yes-shop-page .yes-product-card__footer {
    margin-top: 8px;
}

.yes-shop-page .yes-product-card__cart-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: 2px solid var(--yes-ink);
    border-radius: 11px;
    background: var(--yes-yellow);
    color: var(--yes-ink);
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--yes-ink);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}

.yes-shop-page .yes-product-card__cart-btn:hover,
.yes-shop-page .yes-product-card__cart-btn:focus-visible {
    background: var(--yes-pink);
    color: #fff;
    transform: translate(2px, 2px);
    box-shadow: none;
}

.yes-shop-page .yes-product-card__cart-btn:disabled,
.yes-shop-page .yes-product-card__cart-btn.btn-loading {
    opacity: .65;
    cursor: progress;
    transform: none;
    box-shadow: 3px 3px 0 var(--yes-ink);
}

.yes-shop-page .yes-product-card__cart-btn.is-added {
    background: #16a34a;
    color: #fff;
}

/* Badges */
.yes-shop-page .tp-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    z-index: 3;
}

.yes-shop-page .tp-product-badge span {
    display: inline-block;
    border: 2px solid var(--yes-ink);
    border-radius: 7px;
    background: var(--yes-pink);
    color: #fff;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.5;
}

.yes-shop-page .tp-product-badge .product-sale { background: var(--yes-yellow); color: var(--yes-ink); }
.yes-shop-page .tp-product-badge .product-out-stock { background: var(--yes-ink); color: #fff; }

/* Card action buttons */
.yes-shop-page .yes-product-card .tp-product-action {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.yes-shop-page .yes-product-card .tp-product-action-item {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
}

.yes-shop-page .yes-product-card .tp-product-action-btn {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 2px solid var(--yes-ink);
    border-radius: 50%;
    background: #fff;
    color: var(--yes-ink);
    cursor: pointer;
    padding: 0;
    box-shadow: 2px 2px 0 var(--yes-ink);
}

.yes-shop-page .yes-product-card .tp-product-action-btn:hover,
.yes-shop-page .yes-product-card .tp-product-action-btn.active {
    background: var(--yes-pink);
    color: #fff;
}

.yes-shop-page .tp-product-tooltip { display: none; }

/* Add to cart */
.yes-shop-page .yes-product-card .tp-product-add-cart-btn-large-wrapper {
    /* 只保留卡片底部嘅 🛒 加入購物車，隱藏 hover 大按鈕避免同一張卡出現兩粒加入購物車 */
    display: none;
}

.yes-shop-page .tp-product-add-cart-btn-large {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--yes-ink);
    border-radius: 9px;
    background: var(--yes-yellow);
    color: var(--yes-ink);
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.yes-shop-page .tp-product-add-cart-btn-large:hover { background: var(--yes-pink); color: #fff; }
.yes-shop-page .tp-product-add-cart-btn-large svg { width: 18px; height: 18px; }

/* List layout */
.yes-shop-page .yes-products-list .yes-product-card { flex-direction: row; }

.yes-shop-page .yes-products-list .yes-product-card__media {
    flex: 0 0 220px;
    border-bottom: 0;
    border-right: 2px solid var(--yes-ink);
}

.yes-shop-page .yes-products-list .yes-product-card__body { padding: 18px 20px; }

/* Pagination ------------------------------------------------------------- */
.yes-shop-page .yes-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.yes-shop-page .yes-page {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--yes-ink);
    border-radius: 9px;
    background: #fff;
    color: var(--yes-ink);
    font-weight: 900;
    font-size: 14px;
    text-decoration: none;
}

.yes-shop-page a.yes-page:hover { background: var(--yes-yellow); }

.yes-shop-page .yes-page.is-active { background: var(--yes-pink); color: #fff; }

.yes-shop-page .yes-page.is-disabled,
.yes-shop-page .yes-page.is-dots { opacity: .45; border-style: dashed; }

/* Empty / alert ---------------------------------------------------------- */
.yes-shop-page .alert {
    border: 2px solid var(--yes-ink);
    border-radius: 12px;
    background: #fff;
    box-shadow: 4px 4px 0 var(--yes-ink);
    padding: 16px 18px;
    font-weight: 700;
}

.yes-shop-page .alert .d-flex { display: flex; align-items: center; gap: 8px; }

.yes-shop-page .bb-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--yes-ink);
    border-radius: 9px;
    background: var(--yes-yellow);
    padding: 10px 24px;
    font-weight: 900;
    cursor: pointer;
}

/* Mobile filter drawer --------------------------------------------------- */
.body-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, .68);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
    z-index: 1090;
}

.body-overlay.opened { opacity: 1; visibility: visible; }

.yes-shop-page .bb-filter-offcanvas-area {
    position: fixed;
    top: 0;
    left: 0;
    width: min(340px, 88vw);
    height: 100%;
    padding: 18px;
    background-color: var(--yes-bg);
    background-image: radial-gradient(var(--yes-pink) 0.75px, transparent 0.75px), radial-gradient(var(--yes-yellow) 0.75px, var(--yes-bg) 0.75px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    border-right: 3px solid var(--yes-ink);
    transform: translateX(calc(-100% - 40px));
    transition: transform .3s cubic-bezier(.785, .135, .15, .86);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    z-index: 1100;
}

.yes-shop-page .bb-filter-offcanvas-area.offcanvas-opened { transform: translateX(0); }

.yes-shop-page .bb-filter-offcanvas-close-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--yes-ink);
    border-radius: 9px;
    background: var(--yes-yellow);
    color: var(--yes-ink);
    padding: 9px 12px;
    margin-bottom: 16px;
    font-weight: 900;
    cursor: pointer;
}

.yes-shop-page .bb-filter-offcanvas-close-btn svg { width: 18px; height: 18px; }

/* Quick view modal ------------------------------------------------------- */
.tp-product-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    overflow-x: hidden;
    overflow-y: auto;
    background: rgba(17, 17, 17, .68);
}

.tp-product-modal.show { display: block; }

.tp-product-modal .modal-dialog {
    max-width: 960px;
    margin: 64px auto;
    padding: 0 16px;
}

.tp-product-modal .modal-content {
    background: #fff;
    border: 3px solid #111;
    border-radius: 16px;
    box-shadow: 8px 8px 0 #111;
    overflow: hidden;
    padding: 20px;
}

/* Quick view 內容由 plugin 輸出，入面用 Bootstrap grid（.row / .col-lg-6），
   但呢個主題冇載入 Bootstrap CSS，所以自己畀個兩欄 layout 同限制圖片高度。 */
.tp-product-modal .bb-quick-view-content > .row {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 24px;
    margin: 0;
}

.tp-product-modal .bb-quick-view-content > .row > [class*='col-'] {
    width: auto;
    max-width: none;
    padding: 0;
}

.tp-product-modal .bb-quick-view-content .image .wrapper img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    border: 2px solid #111;
    border-radius: 12px;
    background: #fff1f6;
}

.tp-product-modal .bb-quick-view-content .product-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 900;
    color: #111;
}

.tp-product-modal .bb-quick-view-content .product-description {
    font-size: 14px;
    line-height: 1.65;
    color: #52525b;
}

@media (max-width: 767px) {
    .tp-product-modal .bb-quick-view-content > .row {
        grid-template-columns: minmax(0, 1fr);
    }

    .tp-product-modal .bb-quick-view-content .image .wrapper img {
        max-height: 280px;
    }
}

/* Quick view 表單（數量、加入購物車、比較／願望清單）同樣係 Bootstrap 類別 */
.tp-product-modal .bb-quick-view-content form .d-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tp-product-modal .bb-quick-view-content .bb-product-quantity {
    display: inline-flex;
    align-items: stretch;
    overflow: hidden;
    border: 2px solid #111;
    border-radius: 999px;
    background: #fff;
}

.tp-product-modal .bb-quick-view-content .bb-product-quantity .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: #fff;
    color: #111;
    cursor: pointer;
}

.tp-product-modal .bb-quick-view-content .bb-product-quantity .form-control {
    width: 54px;
    height: 38px;
    padding: 0;
    border: 0;
    background: #fff;
    color: #111;
    font-weight: 900;
    text-align: center;
    -moz-appearance: textfield;
}

.tp-product-modal .bb-quick-view-content .bb-product-quantity .form-control::-webkit-outer-spin-button,
.tp-product-modal .bb-quick-view-content .bb-product-quantity .form-control::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.tp-product-modal .bb-quick-view-content .bb-product-details-add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 2px solid #111;
    border-radius: 999px;
    background: var(--yes-yellow, #ffe600);
    color: #111;
    font-weight: 900;
    line-height: 1;
    box-shadow: 3px 3px 0 #111;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.tp-product-modal .bb-quick-view-content .bb-product-details-add-to-cart-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.tp-product-modal .bb-quick-view-content .bb-product-details-add-to-cart-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.tp-product-modal .bb-quick-view-content .bb-btn-compare,
.tp-product-modal .bb-quick-view-content .bb-btn-wishlist {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: #111;
    font-weight: 700;
    cursor: pointer;
}

.modal-backdrop { position: fixed; inset: 0; z-index: 1190; background: #111; opacity: .68; }
body.modal-open { overflow: hidden; }

/* Botble 前台會 render 未開啟嘅 Bootstrap modal markup（class="modal fade"，
   例如商品列表嘅 #quick-shop-modal），但呢個主題只 style 咗 .tp-product-modal，
   又冇載入 Bootstrap CSS，所以 `.modal` 完全冇 `display:none`，modal 內容
   （連入面 absolute 定位嘅 loading spinner）就會攤喺頁面左上角。
   未開啟（冇 .show）就自己收埋佢。 */
.yes-shop-page .modal:not(.show) { display: none; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 991px) {
    .yes-shop-page .yes-products-layout { grid-template-columns: minmax(0, 1fr); }
    .yes-shop-page .yes-products-sidebar { display: none; }
    .yes-shop-page .yes-products-layout-right .yes-products-sidebar { order: 0; }
    .yes-shop-page .yes-top-filter-btn { display: inline-flex; }
    .yes-shop-page .bb-filter-offcanvas-area { display: none; }
    .yes-shop-page .bb-filter-offcanvas-area.offcanvas-opened { display: block !important; }
}

@media (max-width: 767px) {
    .yes-shop-heading { flex-direction: column; align-items: flex-start; }
    .yes-shop-back { align-self: flex-start; }
    .yes-shop-container { padding: 28px 14px 48px; }
    .yes-shop-page .tp-shop-top { padding: 12px; }
    .yes-shop-page .tp-shop-top-result { width: 100%; }
    .yes-shop-page .yes-products-list .yes-product-card { flex-direction: column; }
    .yes-shop-page .yes-products-list .yes-product-card__media { flex: 0 0 auto; border-right: 0; border-bottom: 2px solid var(--yes-ink); }
}

@media (max-width: 575px) {
    .yes-shop-page .yes-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .yes-shop-page .yes-product-card__title { font-size: 13px; }
    .yes-shop-page .yes-product-card__price { font-size: 15px; }
    .yes-shop-page .yes-product-card__body { padding: 10px; }
    .yes-shop-page .yes-product-card .tp-product-action-btn { width: 30px; height: 30px; }
    .yes-shop-page .yes-product-card .tp-product-action-btn svg { width: 14px; height: 14px; }
}

@media (min-width: 992px) {
    .yes-shop-page .bb-filter-offcanvas-area { display: none; }
}

/* ==========================================================================
   Header cart button — lives in the theme layout (outside .yes-shop-page),
   so it is intentionally not scoped.
   ========================================================================== */
.yes-cart-link,
.yes-account-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border: 2px solid #111;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-weight: 900;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 4px 4px 0 #111;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.yes-cart-link {
    position: relative;
}

.yes-cart-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.yes-cart-link:hover,
.yes-cart-link:focus-visible,
.yes-account-link:hover,
.yes-account-link:focus-visible {
    background: #ffe600;
    transform: translate(2px, 2px);
    box-shadow: none;
}

@media (max-width: 639px) {
    .yes-account-link,
    .yes-cart-link {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
        box-shadow: 2px 2px 0 #111;
    }

    .yes-cart-link > span:nth-child(2) {
        display: none;
    }

    .yes-cart-link .yes-cart-badge {
        position: absolute;
        top: -7px;
        right: -7px;
        min-width: 19px;
        height: 19px;
        padding: 0 4px;
        font-size: 10px;
    }

    #mobile-menu-btn {
        padding: 6px;
    }
}

@media (max-width: 399px) {
    .yes-account-link,
    .yes-cart-link {
        width: 36px;
        height: 36px;
    }
}

.yes-cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border: 2px solid #111;
    border-radius: 999px;
    background: #ff007f;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

/* Pulse the badge when the count changes (see yes-shop.js) */
.yes-cart-badge.is-bumped {
    animation: yes-cart-bump .45s ease;
}

@keyframes yes-cart-bump {
    0% { transform: scale(1); }
    35% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.yes-cart-link.is-cart-target {
    animation: yes-cart-target-pop .72s cubic-bezier(.2,.8,.2,1);
}

.yes-cart-link.is-cart-target .yes-cart-icon {
    animation: yes-cart-icon-wiggle .62s ease-in-out;
}

.yes-cart-flight {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px solid #111;
    border-radius: 50%;
    background: #fff;
    box-shadow: 4px 4px 0 #111;
    font-size: 25px;
    pointer-events: none;
    will-change: transform, opacity;
}

.yes-cart-flight img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.yes-cart-notice {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 10001;
    width: max-content;
    max-width: min(92vw, 520px);
    padding: 13px 20px;
    border: 3px solid #111;
    border-radius: 14px;
    background: #16a34a;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.45;
    text-align: center;
    box-shadow: 5px 5px 0 #111;
    opacity: 0;
    transform: translate(-50%, 24px) scale(.94);
    pointer-events: none;
    transition: opacity .2s ease, transform .28s cubic-bezier(.2,.8,.2,1);
}

.yes-cart-notice.is-visible {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

button.is-cart-added {
    animation: yes-cart-button-pop .7s cubic-bezier(.2,.8,.2,1);
}

@keyframes yes-cart-target-pop {
    0%, 100% { transform: scale(1); }
    35% { transform: scale(1.14) rotate(-3deg); background: #ffe600; }
    65% { transform: scale(.96) rotate(2deg); }
}

@keyframes yes-cart-icon-wiggle {
    0%, 100% { transform: translateX(0) rotate(0); }
    25% { transform: translateX(-3px) rotate(-10deg); }
    50% { transform: translateX(3px) rotate(10deg); }
    75% { transform: translateX(-2px) rotate(-6deg); }
}

@keyframes yes-cart-button-pop {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(.94); background: #16a34a; color: #fff; }
    70% { transform: scale(1.04); }
}

@media (max-width: 639px) {
    .yes-cart-notice {
        bottom: 78px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yes-cart-flight,
    .yes-cart-link.is-cart-target,
    .yes-cart-link.is-cart-target .yes-cart-icon,
    button.is-cart-added {
        animation: none;
    }

    .yes-cart-notice {
        transition: opacity .01ms;
    }
}

/* ==========================================================================
   YES! 短碼區（自建短碼：site-features / simple-slider / product groups）
   呢啲樣式原本由 shofy 提供，現在主題獨立，改由 yes 自己做。
   ========================================================================== */

.yes-shortcode-sections {
    --yes-sc-ink: #111;
    --yes-sc-pink: #ff007f;
    --yes-sc-yellow: #ffe600;
    background: #fff;
}

.yes-section-title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 900;
    color: var(--yes-sc-ink, #111);
    letter-spacing: .01em;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 4px solid var(--yes-sc-ink, #111);
}

/* Site features ---------------------------------------------------------- */
.yes-feature-strip {
    padding: 44px 0 8px;
}

.yes-feature-strip__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.yes-feature-card {
    background: #fff;
    border: 3px solid var(--yes-sc-ink, #111);
    border-radius: 16px;
    box-shadow: 4px 4px 0 0 var(--yes-sc-ink, #111);
    padding: 20px 18px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.yes-feature-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 0 var(--yes-sc-pink, #ff007f);
}

.yes-feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    font-size: 24px;
    border-radius: 12px;
    background: var(--yes-sc-yellow, #ffe600);
    border: 2px solid var(--yes-sc-ink, #111);
    margin-bottom: 12px;
}

.yes-feature-card__title {
    font-size: 17px;
    font-weight: 900;
    color: var(--yes-sc-ink, #111);
    margin: 0 0 6px;
}

.yes-feature-card__text {
    font-size: 13.5px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

@media (max-width: 767px) {
    .yes-feature-strip__grid--four {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .yes-feature-strip__grid--four .yes-feature-card {
        min-width: 0;
        padding: 8px 5px;
        border-width: 2px;
        border-radius: 10px;
        box-shadow: 2px 2px 0 0 var(--yes-sc-ink, #111);
    }

    .yes-feature-strip__grid--four .yes-feature-card__icon {
        width: 28px;
        height: 28px;
        margin-bottom: 6px;
        border-width: 1px;
        border-radius: 8px;
        font-size: 16px;
    }

    .yes-feature-strip__grid--four .yes-feature-card__title {
        margin-bottom: 3px;
        font-size: 11px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .yes-feature-strip__grid--four .yes-feature-card__text {
        font-size: 9px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }
}

/* Simple slider ---------------------------------------------------------- */
.yes-hero-slider {
    position: relative;
    background: #fff;
}

.yes-hero-slider__viewport {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.yes-hero-slider__viewport::-webkit-scrollbar { display: none; }

.yes-hero-slider__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.yes-hero-slider__media {
    position: relative;
    display: block;
    aspect-ratio: 21 / 9;
    min-height: 260px;
    background: #fff1f6;
    overflow: hidden;
}

.yes-hero-slider__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yes-hero-slider__caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 26px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0));
    color: #fff;
}

.yes-hero-slider__caption h2 {
    font-size: clamp(20px, 3.4vw, 34px);
    font-weight: 900;
    margin: 0 0 6px;
    color: #ffe600;
    text-shadow: 2px 2px 0 #111;
}

.yes-hero-slider__caption p {
    margin: 0;
    font-size: 14.5px;
    max-width: 700px;
}

.yes-hero-slider__dots {
    position: absolute;
    bottom: 16px;
    inset-inline: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.yes-hero-slider__dots button {
    width: 11px;
    height: 11px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid #111;
    background: #fff;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.yes-hero-slider__dots button.is-active {
    background: var(--yes-sc-pink, #ff007f);
    transform: scale(1.15);
}

/* Product groups tabs ---------------------------------------------------- */
.yes-group-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}

.yes-group-tabs__item {
    font-weight: 900;
    font-size: 13.5px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 2px solid var(--yes-sc-ink, #111);
    background: #fff;
    color: var(--yes-sc-ink, #111);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.yes-group-tabs__item:hover { background: #fff1f6; }

.yes-group-tabs__item.is-active {
    background: var(--yes-sc-pink, #ff007f);
    color: #fff;
}

.yes-group-panel.is-hidden { display: none; }

.yes-shortcode-block { padding-bottom: 8px; }

@media (max-width: 767px) {
    .yes-hero-slider__media { aspect-ratio: 4 / 3; }
    .yes-section-title { font-size: 22px; }
}

/* 短碼區：分類 / 品牌 / 優惠券 / FAQ / Coming soon ------------------------ */
.yes-section-lead {
    font-size: 14.5px;
    color: #4b5563;
    margin: -8px 0 22px;
}

.yes-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
}

.yes-tile-grid--categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yes-tile-grid--categories .yes-tile {
    min-width: 0;
    gap: 8px;
    padding: 14px 10px;
}

.yes-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 14px;
    background: #fff;
    border: 3px solid #111;
    border-radius: 16px;
    box-shadow: 4px 4px 0 0 #111;
    text-decoration: none;
    color: #111;
    transition: transform .2s ease, box-shadow .2s ease;
}

.yes-tile__recommended {
    position: absolute;
    top: -11px;
    right: 12px;
    z-index: 2;
    padding: 4px 10px;
    border: 2px solid #111;
    border-radius: 999px;
    background: #ffe600;
    color: #111;
    box-shadow: 3px 3px 0 #111;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
}

.yes-tile:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 0 #ff007f;
}

.yes-tile__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #ffe600;
    border: 2px solid #111;
    border-radius: 12px;
    overflow: hidden;
}

.yes-tile__image { width: 100%; height: 100%; object-fit: cover; }
.yes-tile__placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
    font-size: 52px;
}

.yes-tile__placeholder .yes-tile__brand-mark {
    filter: drop-shadow(3px 3px 0 #111);
}
.yes-tile__name { font-weight: 900; font-size: 15px; text-align: center; }
.yes-tile__meta { font-size: 12px; color: #6b7280; font-weight: 700; }
.yes-tile-grid--brands .yes-tile__media { background: #fff; padding: 12px; }
.yes-tile-grid--brands .yes-tile__image { object-fit: contain; }

@media (max-width: 767px) {
    .yes-tile-grid--categories {
        gap: 10px;
    }

    .yes-tile-grid--categories .yes-tile {
        gap: 6px;
        padding: 10px 6px;
        border-width: 2px;
        border-radius: 12px;
        box-shadow: 3px 3px 0 0 #111;
    }

    .yes-tile-grid--categories .yes-tile__recommended {
        top: -9px;
        right: 5px;
        padding: 3px 6px;
        border-width: 1px;
        box-shadow: 2px 2px 0 #111;
        font-size: 9px;
    }

    .yes-tile-grid--categories .yes-tile__media {
        border-width: 1px;
        border-radius: 8px;
    }

    .yes-tile-grid--categories .yes-tile__placeholder {
        font-size: 32px;
    }

    .yes-tile-grid--categories .yes-tile__name {
        font-size: 13px;
        line-height: 1.25;
    }

    .yes-tile-grid--categories .yes-tile__meta {
        font-size: 10px;
        line-height: 1.25;
    }
}

.yes-coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.yes-coupon-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 3px dashed #111;
    border-radius: 16px;
    box-shadow: 4px 4px 0 0 #ffe600;
}

.yes-coupon-card__value {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    font-weight: 900;
    font-size: 20px;
    color: #ff007f;
}

.yes-coupon-card__body { flex: 1; min-width: 0; }
.yes-coupon-card__desc { font-size: 13.5px; font-weight: 700; margin: 0 0 10px; }
.yes-coupon-card__code { display: flex; align-items: center; gap: 8px; }
.yes-coupon-card__code span {
    flex: 1;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 700;
    font-size: 14px;
    background: #fff1f6;
    border: 2px solid #111;
    border-radius: 8px;
    padding: 6px 10px;
    text-align: center;
}
.yes-coupon-card__copy {
    font-weight: 900;
    font-size: 12.5px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid #111;
    background: #ffe600;
    cursor: pointer;
}
.yes-coupon-card__copy:hover { background: #ff007f; color: #fff; }

.yes-faq-group + .yes-faq-group { margin-top: 26px; }
.yes-faq-group__title {
    font-size: 18px;
    font-weight: 900;
    margin: 0 0 12px;
    padding-left: 12px;
    border-left: 6px solid #ff007f;
}

.yes-faq {
    background: #fff;
    border: 3px solid #111;
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
}

.yes-faq__question {
    cursor: pointer;
    list-style: none;
    padding: 15px 18px;
    font-weight: 900;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.yes-faq__question::-webkit-details-marker { display: none; }
.yes-faq__question::after { content: '＋'; color: #ff007f; font-weight: 900; }
.yes-faq[open] .yes-faq__question::after { content: '－'; }
.yes-faq__answer {
    padding: 0 18px 16px;
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
}

.yes-coming-soon__inner { text-align: center; max-width: 760px; margin: 0 auto; }
.yes-coming-soon__title { font-size: clamp(24px, 4vw, 40px); font-weight: 900; margin: 6px 0 22px; }
.yes-coming-soon__countdown { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.yes-coming-soon__countdown span {
    min-width: 84px;
    padding: 14px 10px;
    background: #fff;
    border: 3px solid #111;
    border-radius: 14px;
    box-shadow: 4px 4px 0 0 #111;
}
.yes-coming-soon__countdown strong { display: block; font-size: 26px; font-weight: 900; color: #ff007f; }
.yes-coming-soon__countdown em { font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.yes-coming-soon__meta { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.yes-coming-soon__image img { max-width: 100%; border: 3px solid #111; border-radius: 16px; }

/* Contact form shortcode -------------------------------------------------- */
.yes-contact {
    --yes-contact-ink: #111;
    --yes-contact-pink: #ff007f;
    --yes-contact-yellow: #ffe600;
    background: #fff1f6;
}

.yes-contact .yes-section-title {
    color: var(--yes-contact-ink, #111);
}

.yes-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.yes-contact__main,
.yes-contact__card {
    background: #fff;
    border: 3px solid var(--yes-contact-ink, #111);
    border-radius: 18px;
    box-shadow: 6px 6px 0 0 var(--yes-contact-ink, #111);
}

.yes-contact__main { padding: 26px 24px; }

.yes-contact__form .contact-form-group { margin-bottom: 16px; }

.yes-contact__form label {
    display: block;
    font-weight: 900;
    font-size: 13.5px;
    margin-bottom: 6px;
}

.yes-contact__form .contact-form-input,
.yes-contact__form input:not([type='checkbox']):not([type='radio']),
.yes-contact__form textarea,
.yes-contact__form select {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--yes-contact-ink, #111);
    background: #fff;
    border: 3px solid var(--yes-contact-ink, #111);
    border-radius: 12px;
}

.yes-contact__form textarea { min-height: 140px; resize: vertical; }

.yes-contact__form input:focus,
.yes-contact__form textarea:focus,
.yes-contact__form select:focus {
    outline: none;
    box-shadow: 4px 4px 0 0 var(--yes-contact-pink, #ff007f);
}

.yes-contact__form .contact-form-row { display: flex; flex-wrap: wrap; gap: 16px; }
.yes-contact__form .contact-form-row > * { flex: 1 1 220px; min-width: 0; }

.yes-contact__form button[type='submit'],
.yes-contact__form .btn {
    display: inline-block;
    padding: 13px 26px;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .02em;
    color: var(--yes-contact-ink, #111);
    background: var(--yes-contact-yellow, #ffe600);
    border: 3px solid var(--yes-contact-ink, #111);
    border-radius: 12px;
    box-shadow: 4px 4px 0 0 var(--yes-contact-ink, #111);
    cursor: pointer;
}

.yes-contact__form button[type='submit']:hover,
.yes-contact__form .btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 0 var(--yes-contact-ink, #111);
}

.yes-contact__form .text-danger,
.yes-contact__form .invalid-feedback { color: #d1005f; font-size: 13px; font-weight: 700; }

.yes-contact__form .alert { margin-bottom: 18px; }
.yes-contact__form .alert-success { border: 3px solid var(--yes-contact-ink, #111); border-radius: 12px; padding: 12px 16px; font-weight: 700; }

.yes-contact__side { display: flex; flex-direction: column; gap: 18px; }

.yes-contact__card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
}

.yes-contact__icon { flex: 0 0 auto; line-height: 0; }
.yes-contact__icon img { display: block; width: auto; height: auto; }

.yes-contact__text { font-size: 14px; line-height: 1.7; font-weight: 600; }
.yes-contact__text p:last-child { margin-bottom: 0; }

.yes-contact__social-title {
    font-size: 15px;
    font-weight: 900;
    margin: 0 0 10px;
    color: var(--yes-contact-pink, #ff007f);
}

.yes-contact__social { display: flex; flex-wrap: wrap; gap: 10px; }

.yes-contact__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: 17px;
    color: var(--yes-contact-ink, #111);
    background: var(--yes-contact-yellow, #ffe600);
    border: 3px solid var(--yes-contact-ink, #111);
    border-radius: 50%;
    text-decoration: none;
}

.yes-contact__social a:hover { background: var(--yes-contact-pink, #ff007f); color: #fff; }

/* Google map shortcode ---------------------------------------------------- */
.yes-shortcode-sections iframe,
.yes-page-content iframe {
    max-width: 100%;
    border: 3px solid #111;
    border-radius: 16px;
}

@media (max-width: 900px) {
    .yes-contact__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .yes-contact__main { padding: 20px 18px; }
}

/* ==========================================================================
   Mobile navigation panel (header hamburger)
   --------------------------------------------------------------------------
   The panel is fixed to the viewport and scrolls on its own, so swiping the
   menu no longer drags the page behind it. Body scroll is locked by JS
   (`body.yes-nav-open`).
   ========================================================================== */
body.yes-nav-open { overflow: hidden; }

.yes-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 300;
    flex-direction: column;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.yes-mobile-menu__bar {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 3px solid #111;
}

.yes-mobile-menu__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 2px solid #111;
    border-radius: 10px;
    background: var(--yes-yellow, #ffe600);
    color: #111;
    cursor: pointer;
}

.yes-mobile-menu__nav { padding: 16px 16px 40px; }

.yes-mobile-row { display: flex; align-items: stretch; gap: 8px; }

.yes-mobile-row .yes-mobile-link { flex: 1 1 auto; min-width: 0; }

.yes-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    border: 2px solid #111;
    border-radius: 8px;
    background: var(--yes-yellow, #ffe600);
    color: #111;
    cursor: pointer;
}

.yes-mobile-toggle svg { transition: transform .2s ease; }

.yes-mobile-group.is-open .yes-mobile-toggle svg { transform: rotate(180deg); }

.yes-mobile-submenu.is-collapsed { display: none; }

.yes-mobile-group--nested {
    margin-top: 2px;
}

.yes-mobile-toggle--nested {
    width: 36px;
    min-height: 34px;
}

/* ==========================================================================
   Multi-level desktop category menu
   ========================================================================== */
.yes-desktop-menu-dropdown {
    padding-top: 8px;
}

.yes-desktop-menu-panel {
    width: max-content;
    min-width: 18rem;
    max-width: min(28rem, 80vw);
    max-height: min(70vh, 38rem);
    overflow-y: auto;
    padding: 8px;
}

.yes-desktop-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--yes-ink, #111);
    font-weight: 800;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}

.yes-desktop-menu-link:hover,
.yes-desktop-menu-link:focus-visible {
    background: #fff1f6;
    color: var(--yes-pink, #ff007f);
}

.yes-desktop-menu-link.is-active {
    color: var(--yes-pink, #ff007f);
}

.yes-desktop-menu-heading {
    display: flex;
    align-items: stretch;
    gap: 4px;
}

.yes-desktop-menu-heading .yes-desktop-menu-link {
    flex: 1 1 auto;
    min-width: 0;
}

.yes-desktop-menu-link--parent {
    font-weight: 900;
}

.yes-desktop-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 31px;
    min-height: 31px;
    margin: 5px 2px 5px 0;
    border: 1px solid rgba(17, 17, 17, .18);
    border-radius: 7px;
    background: #fff;
    color: #52525b;
    cursor: pointer;
}

.yes-desktop-menu-toggle:hover,
.yes-desktop-menu-toggle:focus-visible {
    border-color: var(--yes-ink, #111);
    background: var(--yes-yellow, #ffe600);
    color: var(--yes-ink, #111);
}

.yes-desktop-menu-toggle svg {
    width: 13px;
    height: 13px;
    transition: transform .18s ease;
}

.yes-desktop-menu-group.is-open .yes-desktop-menu-toggle svg {
    transform: rotate(180deg);
}

.yes-desktop-menu-children {
    margin: 0 5px 7px 14px;
    padding-left: 10px;
    border-left: 2px dashed #f9a8d4;
}

.yes-desktop-menu-children.is-collapsed {
    display: none;
}

.yes-desktop-menu-children .yes-desktop-menu-link {
    padding: 7px 10px;
    font-size: 13px;
}

.yes-desktop-menu-children .yes-desktop-menu-children {
    margin-left: 10px;
}

/* ==========================================================================
   Mobile filter drawer: lock the page behind while the drawer is open.
   ========================================================================== */
body.yes-filter-open { overflow: hidden; }

/* 遮罩本身唔可以帶動背景捲動（iOS 舊版 Safari 對 body overflow 支援較弱）。 */
.yes-filter-overlay { touch-action: none; }

/* 產品類別（分類）預設收合，撳標題先展開。只在手機篩選抽屜入面生效。 */
.yes-shop-page .bb-filter-offcanvas-area .bb-product-filter.yes-filter-collapsible .bb-product-filter-title {
    cursor: pointer;
    user-select: none;
}

.yes-shop-page .bb-filter-offcanvas-area .bb-product-filter.yes-filter-collapsible .bb-product-filter-title::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.yes-shop-page .bb-filter-offcanvas-area .bb-product-filter.yes-filter-collapsible.is-open .bb-product-filter-title::after {
    transform: rotate(225deg);
}

.yes-shop-page .bb-filter-offcanvas-area .bb-product-filter-content.is-collapsed { display: none; }
