/* khl-s5-arrows.css — S5「曼蝶精選」標題列：①箭嘴換設計稿幼線 chevron ②S5 標題列 + S6 卡列 full-bleed
 *
 * 設計稿（PDF 3x render 量得）：
 *   ink bbox 13.2 × 25.9 css（25 × 49 px @1.890277）、顏色 #c5b291、45° 兩臂、stroke ≈ 2.8 css
 * 實站原本：Bagisto icon font（bagisto-shop）"icon-arrow-left/right-stylish"，
 *   ink 21 × 14 css、純黑 #000 → 同設計稿唔一致（長箭嘴 vs 幼線 chevron）
 *
 * 只作用於 S5 標題列：該列嘅 span 有 inline-block，promo 輪播嗰兩個係 flex/h-12.5，唔會中。
 * 回滾：刪走 layout 嗰個 <link> 就即刻還原原 icon font 字形，唔使改 CSS。
 */
.icon-arrow-left-stylish.inline-block,
.icon-arrow-right-stylish.inline-block {
    font-size: 0 !important;      /* 關掉 icon font 字形 */
    color: transparent !important;
    width: 13.2px;
    height: 25.9px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 13.2px 25.9px;
}

.icon-arrow-left-stylish.inline-block {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2013.2%2025.9'%3E%3Cpath%20d='M11.8%201.4%20L1.4%2012.95%20L11.8%2024.5'%20fill='none'%20stroke='%23c5b291'%20stroke-width='2.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
}

.icon-arrow-right-stylish.inline-block {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2013.2%2025.9'%3E%3Cpath%20d='M1.4%201.4%20L11.8%2012.95%20L1.4%2024.5'%20fill='none'%20stroke='%23c5b291'%20stroke-width='2.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ============================================================================
 * S5 標題列 + S6 卡列 full-bleed（2026-10-30 Kobe 批准，範圍只此兩處）
 *
 * 設計稿（1440 css）：
 *   - S5 標題列：標題左 117、箭嘴 ink 右到 1433.4（離 viewport 右 6.6）、兩箭嘴 ink 相距 56.1
 *   - S6 卡列：卡闊 362.9、gap 25、向右出界到 viewport 邊（卡 4 只露一小截）
 * 實站改前：兩者都綁死喺 1210 容器（114.5..1325.5），箭嘴到 1325.5、卡 4 只露 45px
 *
 * 做法：容器本身唔郁，只將呢兩行用負 margin-right 伸出右邊界
 *   gutter = (100vw - 100%) / 2   ← 100% 係容器內容闊度，行嘅 margin 以佢為基準
 *   實測 1440：innerWidth = clientWidth = 100vw = 1440，冇 scrollbar 誤差
 * 只喺 ≥1024 生效：<1024 保持原本容器內排法（390 驗收要求 scrollWidth === innerWidth）
 * ==========================================================================*/
@media (min-width: 1024px) {
    /* S5 標題列：右邊伸到 viewport 再留 6.6px */
    .container:has(> .flex.justify-between > h2.font-dmserif) > .flex.justify-between {
        margin-right: calc((100vw - 100%) / -2 + 6.6px);
    }

    /* 兩個箭嘴之間：設計稿 ink 相距 56.1（原本 gap-8 = 32） */
    .container:has(> .flex.justify-between > h2.font-dmserif) > .flex.justify-between > div {
        gap: 56.1px;
    }

    /* S6 卡列：右邊伸到 viewport 邊，橫向滾動 */
    .container:has(> .flex.justify-between > h2.font-dmserif) > .scrollbar-hide {
        margin-right: calc((100vw - 100%) / -2);
        /* 品牌層有 `gap:25.9px !important`，呢度要 !important 才蓋得過 */
        gap: 25px !important;
    }

    /* 卡闊用設計值 362.9（原本 max-w/min-w 362.7／291） */
    .container:has(> .flex.justify-between > h2.font-dmserif) > .scrollbar-hide > * {
        min-width: 362.9px !important;
        max-width: 362.9px !important;
    }
}
