/**
 * ecport_overrides.css
 * 商品詳細ページ等のUI差分修正（テーマ標準に近づける）
 * .tf-main-product でスコープしテーマ全体に影響しない
 */

/* ===== iOS Safari 既知バグ回避 ===== */
/* scroll-behavior: smooth は iOS Safari でフリーズの可能性 → auto に上書き */
html { scroll-behavior: auto !important; }
.preload-container { display: none !important; }

/* ===== ECport 共通ユーティリティ ===== */

/* --- 画像サムネイル --- */
.ec-thumb-sm  { width: 40px; height: 40px; object-fit: cover; }
.ec-thumb-md  { width: 60px; height: 60px; object-fit: cover; }
.ec-thumb-lg  { width: 80px; height: 80px; object-fit: cover; }
.ec-thumb-xl  { width: 120px; height: 120px; object-fit: cover; }

/* --- テキスト表示 --- */
.ec-prewrap { white-space: pre-wrap; line-height: 1.8; }

/* ===== Phase 1: 日本語テキスト基盤 ===== */

/* 日本語テキストの折り返し・溢れ防止（グローバル） */
h1, h2, h3, h4, h5, h6,
p, li, td, th, dt, dd, label, figcaption,
.card-title, .cart-title, .cart-info {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 価格・バッジ等、改行させたくない要素 */
.price, .cart-price, .cart-total,
.total-value, .total-price,
.tf-cart-totals-discounts span,
.tf-cart-totals-line span:last-child,
.checkout-product-item .content .price,
.ec-order-total,
.ec-status-badge,
.ec-badge-default {
    white-space: nowrap;
}

/* 在庫0時のAdd to cart無効化 */
.tf-main-product .btn-add-to-cart.disabled {
    pointer-events: none;
    opacity: 0.65;
    cursor: not-allowed;
}

/* 右カラム 情報ブロックの余白 */
.tf-main-product .tf-product-info-list > * + * {
    margin-top: 1.25rem;
}

.tf-main-product .tf-product-info-title {
    margin-bottom: 0.5rem;
}

.tf-main-product .tf-product-info-price {
    margin-top: 0.5rem;
}

.tf-main-product .tf-product-info-variant-picker .variant-picker-item + .variant-picker-item {
    margin-top: 1.25rem;
}

.tf-main-product .tf-product-info-quantity {
    margin-top: 1rem;
}

.tf-main-product .tf-product-info-buy-button {
    margin-top: 1.25rem;
}

/* タブ領域 */
.tf-main-product ~ section .widget-content-tab .widget-content-inner {
    padding: 1.5rem 0;
}

/* タブコンテンツ内の余白・画像 */
.tf-main-product ~ section .widget-content-tab .tf-tab-content img {
    max-width: 100%;
    height: auto;
}
.tf-main-product ~ section .widget-content-tab .tf-tab-content figure {
    margin: 1rem 0;
}

/* 商品詳細: メイン画像を正方形に統一 */
.tf-product-media-wrap .tf-product-media-main .item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
/* 商品詳細: サムネイルも正方形に統一 */
.tf-product-media-wrap .tf-product-media-thumbs .item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* 左画像: thumbs-slider / swiper はテーマ標準のgapを使用 */

/* カテゴリー棚: 7列グリッド */
.category-shelves-section [data-grid="grid-7"] {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
}
@media (max-width: 1199.98px) {
    .category-shelves-section [data-grid="grid-7"] {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 767.98px) {
    .category-shelves-section [data-grid="grid-7"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ボタン・フォント テーマ既定に揃える */
.tf-main-product .tf-btn.btn-fill {
    min-height: 48px;
    font-size: 1rem;
    line-height: 1.7;
}

/* ===== 商品一覧ページ モバイル対応 ===== */

/* デスクトップではフィルターボタンを非表示 */
.filterShop.tf-btn-filter {
    display: none;
}

/* 1149px以下: サイドバーがoffcanvasになるのでコンテンツを全幅に */
@media (max-width: 1149px) {
    .filterShop.tf-btn-filter {
        display: inline-flex;
    }
    .tf-row-flex {
        flex-direction: column;
    }
    .tf-row-flex .tf-shop-sidebar {
        width: 100%;
    }
    .tf-row-flex .tf-shop-content {
        width: 100%;
    }
}

/* ===== チェックアウト: ECPort独自UI ===== */

/* ログインバナー（ログイン済み） */
.form-checkout .ec-checkout-login-banner {
    padding: 12px 16px;
    background-color: #f0f7f0;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
}

/* ログインフォーム（未ログイン時の折りたたみ） */
.form-checkout .ec-checkout-login-form {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 16px;
}

/* エラー表示エリア */
.form-checkout .ec-checkout-errors {
    background-color: #fff3f3;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 12px 16px;
}
.form-checkout .ec-checkout-errors .ec-error-title {
    color: #dc3545;
    margin: 0;
}
.form-checkout .ec-checkout-errors .ec-error-list {
    margin: 8px 0 0 16px;
    padding: 0;
    color: #dc3545;
    font-size: 14px;
}

/* ソーシャルギフトオプション */
.form-checkout .ec-gift-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 16px;
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 6px;
}
.form-checkout .ec-gift-toggle::after,
.form-checkout .ec-checkout-section label::after {
    content: none;
}
.form-checkout .ec-gift-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
}
.form-checkout .ec-gift-note {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #888;
    line-height: 1.7;
}
.form-checkout .ec-gift-info {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}
.form-checkout .ec-gift-info p:first-child {
    margin: 0 0 8px;
    font-size: 14px;
    color: #e65100;
}
.form-checkout .ec-gift-info p:last-child {
    margin: 0;
    font-size: 13px;
    color: #888;
}

/* チェックアウト ステップカード */
.form-checkout .ec-checkout-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}
.form-checkout .ec-checkout-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}
.form-checkout .ec-checkout-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #222;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}
.form-checkout .ec-checkout-section-body {
    padding: 20px 16px;
}

/* クーポン適用済み */
.widget-wrap-checkout .ec-coupon-applied {
    background: #d4edda;
    border-radius: 4px;
    padding: 8px;
}
.widget-wrap-checkout .ec-coupon-remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    text-decoration: underline;
}

/* 割引表示 */
.widget-wrap-checkout .ec-discount-amount {
    color: #198754;
}

/* ===== マイページ: ECPort独自UI ===== */

/* ユーザー情報カード */
.my-account-content .ec-user-card {
    background: #fafafa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #eee;
    margin-bottom: 30px;
}
.my-account-content .ec-user-card h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}
.my-account-content .ec-user-card .ec-user-email {
    color: #888;
    font-size: 14px;
    margin: 0;
}

/* 配送先カード */
.my-account-content .ec-address-card {
    border: 1px solid var(--main, #222);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.my-account-content .ec-address-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.my-account-content .ec-address-name {
    font-weight: 600;
    font-size: 15px;
}
.my-account-content .ec-badge-default {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    background: var(--main, #222);
    color: #fff;
    border-radius: 10px;
}
.my-account-content .ec-address-body {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    word-break: break-word;
    overflow-wrap: break-word;
}
.my-account-content .ec-address-body .ec-label-muted {
    color: #999;
}

/* ステータスバッジ */
.my-account-content .ec-status-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: #fff;
    display: inline-block;
}

/* SPカード */
.my-account-content .ec-order-card-sp {
    display: block;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
}
.my-account-content .ec-order-card-sp .ec-order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.my-account-content .ec-order-card-sp .ec-order-number {
    font-weight: 600;
    font-size: 14px;
}
.my-account-content .ec-order-card-sp .ec-status-badge {
    font-size: 12px;
}
.my-account-content .ec-order-card-sp .ec-order-card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #888;
}
.my-account-content .ec-order-card-sp .ec-order-total {
    font-weight: 500;
    color: #333;
}

/* セクション見出し */
.my-account-content .ec-section-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* ===== 共通フラッシュメッセージ ===== */
.ec-flash-error {
    padding: 12px 16px;
    background: #f8d7da;
    border-radius: 4px;
    color: #721c24;
}
.ec-flash-success {
    padding: 12px 16px;
    background: #d4edda;
    border-radius: 4px;
    color: #155724;
}
.ec-flash-warning {
    padding: 12px 16px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
}

/* ===== z-index スケール =====
 * navbar:        1000 (Bootstrap default)
 * dropdown:      1100 (Bootstrap default)
 * Bootstrap modal-backdrop: 1050
 * Bootstrap modal:          1055
 * cart-added overlay:       1060 (Bootstrap モーダルの上)
 * toast:                    1090 (最前面)
 */

/* ===== トースト通知 ===== */
#ec-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1090;
    min-width: 280px;
    max-width: 480px;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.7;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    transition: opacity .3s;
}

/* ===== カート追加モーダル ===== */
.ec-cart-added-overlay {
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: rgba(0,0,0,.45);
}
.ec-cart-added-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 30px rgba(0,0,0,.2);
    overflow: hidden;
}
.ec-cart-added-header {
    padding: 24px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ec-cart-added-header .ec-check-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ec-cart-added-header .ec-check-icon span {
    font-size: 16px;
    font-weight: 600;
}
.ec-cart-added-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    color: #666;
}
.ec-cart-added-body {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.ec-cart-added-body img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
    flex-shrink: 0;
}
.ec-cart-added-body .ec-added-name {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ec-cart-added-body .ec-added-price {
    margin: 0;
    font-size: 14px;
    color: #666;
}
/* 本体＋オプション×数量＝合計の内訳。金額の行はスマホでも途中で折らない */
.ec-cart-added-body .ec-added-price-line {
    display: block;
    white-space: nowrap;
}
.ec-cart-added-body .ec-added-price-options {
    display: block;
    padding-inline-start: 1.2em;
    font-size: 12px;
    color: #888;
}
.ec-cart-added-body .ec-added-price-total {
    margin-top: 2px;
    font-size: 16px;
    font-weight: 600;
    color: #222;
}
.ec-cart-added-actions {
    padding: 0 24px 24px;
    display: flex;
    gap: 10px;
}
.ec-cart-added-continue {
    flex: 1;
    padding: 12px;
    border: 1px solid #222;
    background: #fff;
    color: #222;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.ec-cart-added-go {
    flex: 1;
    padding: 12px;
    border: none;
    background: #222;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

/* ===== ゲスト登録フォーム（注文完了ページ） ===== */
.ec-guest-register {
    background: #f8f9fa;
    padding: 24px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

/* ===== iOS Safari スクロール修正 ===== */
/* WOW.js の visibility:hidden がiOSでスクロール不能の原因になるため無効化。
   全要素を即座に表示し、パフォーマンスも向上する。 */
.wow {
    visibility: visible !important;
    animation-name: none !important;
}

/* 各セクションの横幅超過を防止（bodyにoverflow-xは設定しない） */
.builder-section,
.flat-categorie,
.flat-seller {
    max-width: 100%;
    overflow-x: clip;
}

/* ===== CSS Grid + aspect-ratio Safari バグ対策 ===== */
[data-grid] > * {
    min-height: 0;
    min-width: 0;
}

/* ===== data-grid レスポンシブ対応 ===== */
@media (max-width: 767px) {
    [data-grid=grid-3],
    [data-grid=grid-4],
    [data-grid=grid-5],
    [data-grid=grid-6] {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    [data-grid=grid-4],
    [data-grid=grid-5],
    [data-grid=grid-6] {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== カテゴリーグリッド: モバイルでDiscoveryカード非表示 ===== */
@media (max-width: 767px) {
    .flat-categorie .discovery-new-item {
        display: none;
    }
}

/* ===== モバイル対応: 全体 ===== */

/* 商品グリッド: CSS フォールバック（shop.js のバックアップ） */
@media (max-width: 767px) {
    .tf-grid-layout.tf-col-4,
    .tf-grid-layout.tf-col-3,
    .tf-grid-layout.tf-col-5,
    .tf-grid-layout.tf-col-6 {
        grid-template-columns: 1fr 1fr;
    }
}
@media (min-width: 768px) and (max-width: 1149px) {
    .tf-grid-layout.tf-col-4,
    .tf-grid-layout.tf-col-5,
    .tf-grid-layout.tf-col-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 商品一覧: 検索フォームinput */
.ec-search-input {
    max-width: 360px;
    flex: 1 1 auto;
}

/* 商品カード画像: フォールバック */
/* aspect-ratio は iOS Safari の CSS Grid 内で高さ無限膨張バグを起こすため、
   padding-top による従来手法でアスペクト比を実現する */
/* CSS Grid のアイテムは min-width: auto がデフォルトで、子画像の intrinsic width に
   トラックを押し広げてしまう（巨大な QR コード画像等で 1 列が極端に広がる事象あり）。
   min-width: 0 を明示してトラック幅に追従させる。 */
.card-product {
    min-width: 0;
}
.card-product .card-product-wrapper {
    background-color: #f5f5f5;
    position: relative;
    overflow: hidden;
}
.card-product .card-product-wrapper .product-img {
    display: block;
    width: 100%;
}
.card-product .card-product-wrapper .product-img img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* 商品カード: ボタン状態別スタイル */
.card-product .ec-btn-add-to-cart {
    border: 1px solid #222;
    background: #fff;
    color: #222;
    width: 100%;
    justify-content: center;
    transition: background .2s, color .2s;
}
.card-product .ec-btn-add-to-cart:hover {
    background: #222;
    color: #fff;
}
.card-product .ec-btn-out-of-stock {
    border: 1px solid #ccc;
    background: #f5f5f5;
    color: #999;
    width: 100%;
    justify-content: center;
    pointer-events: none;
}
.card-product .ec-btn-purchase-request {
    border: 1px solid #0d6efd;
    background: #0d6efd;
    color: #fff;
    width: 100%;
    justify-content: center;
    transition: background .2s;
}
.card-product .ec-btn-purchase-request:hover {
    background: #0b5ed7;
    color: #fff;
}

/* 商品カード: テキスト折り返し */
.card-product .card-product-info .title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    min-height: 2lh;
}

/* 商品カード: カートに追加ボタン
   テーマ標準の .tf-btn に overflow:hidden が設定されているため
   SP表示でカード幅が狭い際にボタン内テキストが見切れる問題を修正。
   テキストの折り返しを許可し、ボタン幅をカード幅に追従させる。 */
.card-product .card-product-info .tf-btn {
    overflow: visible;
    white-space: normal;
    text-align: center;
    width: 100%;
    justify-content: center;
    line-height: 1.5;
}

/* 二次ボタン（.btn-line に radius-3 / btn-sm を付けたもの）
   テーマ標準の .btn-line は下線リンク用で padding:0 のため、枠線を付けたサイトでは
   文字が枠に張り付く。.tf-btn と同じ余白を持たせ、ボタン幅を文字幅に追従させる。
   矢印付きの「すべて見る」等の文字リンク（radius-3 / btn-sm なし）は対象外。 */
.tf-btn.btn-line.radius-3,
.tf-btn.btn-line.btn-sm {
    padding: 14px 24px;
}
.tf-btn.btn-line.btn-sm {
    padding-left: 18px;
    padding-right: 18px;
}
@media only screen and (max-width: 767px) {
    .tf-btn.btn-line.radius-3,
    .tf-btn.btn-line.btn-sm {
        padding: 10px 24px;
    }
}

/* ===== モバイル（767px以下） ===== */
@media (max-width: 767px) {

    /* --- ツールバー --- */
    .tf-shop-control.grid-3 {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .tf-shop-control .tf-control-filter {
        order: 1;
        flex: 1 1 auto;
    }
    .tf-shop-control .tf-control-sorting {
        order: 2;
        flex: 0 0 auto;
    }
    .tf-shop-control .tf-control-sorting .tf-dropdown-sort {
        width: auto;
    }
    /* レイアウト切替: モバイルでは非表示（常に2列） */
    .tf-shop-control .tf-control-layout {
        display: none;
    }

    /* --- 検索フォーム --- */
    .flat-spacing-2 .mb_20 .d-flex.gap-10 {
        flex-wrap: wrap;
    }
    .ec-search-input {
        max-width: 100% !important;
        width: 100%;
        flex: 1 1 100%;
    }
    .flat-spacing-2 .mb_20 .d-flex.gap-10 .tf-btn {
        flex: 1 1 auto;
    }

    /* --- 商品カード: quick-add ボタンを常時表示 --- */
    .card-product .card-product-wrapper .list-product-btn.absolute-2 {
        opacity: 1;
        visibility: visible;
        bottom: 10px;
    }

    /* --- ページネーション --- */
    .tf-pagination-wrap .wg-pagination {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }
    .tf-pagination-wrap .wg-pagination .pagination-item {
        width: 36px;
        height: 34px;
        font-size: 13px;
    }

    /* --- チェックアウト: 2カラム→1カラム --- */
    .tf-page-cart-wrap.layout-2 {
        grid-template-columns: 1fr;
    }

    /* --- カート追加モーダル --- */
    .ec-cart-added-dialog {
        width: 95%;
    }
    .ec-cart-added-header {
        padding: 16px 16px 0;
    }
    .ec-cart-added-body {
        padding: 16px;
    }
    .ec-cart-added-actions {
        padding: 0 16px 16px;
        flex-direction: column;
    }

    /* --- トースト --- */
    #ec-toast {
        min-width: auto;
        max-width: 90vw;
        left: 5%;
        right: 5%;
        transform: none;
    }

    /* --- マイページ --- */
    .my-account-content .ec-user-card {
        padding: 16px;
    }
    .my-account-content .ec-address-card {
        padding: 12px;
    }

    /* --- チェックアウト注文概要: 商品画像サイズ --- */
    .widget-wrap-checkout .checkout-product-item .img-product {
        width: 56px;
        height: 56px;
    }
    .widget-wrap-checkout .checkout-product-item .content {
        font-size: 13px;
    }

    /* --- フッター: 決済アイコン中央寄せ --- */
    .footer-bottom-wrap {
        justify-content: center !important;
        text-align: center;
    }

    /* --- ゲスト登録フォーム --- */
    .ec-guest-register {
        padding: 16px;
    }

    /* --- Phase 2: フォーム2カラム→1カラム --- */
    .box.grid-2 {
        grid-template-columns: 1fr;
    }

    /* --- Phase 2: ボタン最小幅 --- */
    .tf-btn {
        min-width: 100px;
    }
    /* 短いボタンのみnowrap（長文ボタンは折り返し許容） */
    .tf-btn.btn-sm {
        white-space: nowrap;
    }
}

/* ===== Phase 2: 小型スマホ（480px以下） ===== */
@media (max-width: 480px) {
    /* セクション余白を詰める */
    .flat-spacing-11 {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    /* チェックアウトセクション */
    .form-checkout .ec-checkout-section-header {
        padding: 10px 12px;
        gap: 8px;
    }
    .form-checkout .ec-checkout-section-body {
        padding: 16px 12px;
    }

    /* 注文概要の商品名 */
    .widget-wrap-checkout .checkout-product-item .content .name {
        font-size: 12px;
    }

    /* ページネーション縮小 */
    .tf-pagination-wrap .wg-pagination .pagination-item {
        width: 32px;
        height: 30px;
        font-size: 12px;
    }
}

/* ===== タブレット（768px〜1149px） ===== */
@media (min-width: 768px) and (max-width: 1149px) {
    /* レイアウト切替: 4列以上を非表示 */
    .tf-shop-control .sw-layout-4,
    .tf-shop-control .sw-layout-5,
    .tf-shop-control .sw-layout-6 {
        display: none;
    }
}

/* ===== 商品一覧: 商品カード画像なし時のプレースホルダー ===== */
.card-product .card-product-wrapper .product-img img[src=""],
.card-product .card-product-wrapper .product-img img:not([src]) {
    visibility: hidden;
}
.card-product .card-product-wrapper .product-img img[src=""] + .img-hover,
.card-product .card-product-wrapper .product-img img:not([src]) + .img-hover {
    display: none;
}

/* ===== Phase 3: テーブル・モーダル レスポンシブ ===== */

/* テーブルの横スクロール対応（モバイルのみ） */
@media (max-width: 767px) {
    .tf-page-cart-item {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .tf-page-cart-item .tf-table-page-cart {
        min-width: 500px;
    }
}

/* クイックビュー・クイック追加モーダルの商品名折り返し */
.modal-dialog .tf-product-info-title,
#qv-name {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* （ミニカート商品名は追加修正セクションに正しいセレクタで定義） */

/* モーダルのスマホ対応 */
@media (max-width: 480px) {
    .ec-cart-added-dialog {
        width: 96%;
        border-radius: 8px;
    }
    .modal-dialog {
        margin: 8px;
    }
}

/* ===== 追加修正: 未対応項目 ===== */

/* お知らせバー: テキスト溢れ防止 */
.top-bar-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* ヘッダーナビアイコン: タブレットで間隔詰め */
@media (min-width: 768px) and (max-width: 1024px) {
    .nav-icon.gap-20 {
        gap: 12px;
    }
}

/* フォームエラーメッセージの折り返し */
.text-danger,
.tf-message-error,
.ec-checkout-errors .ec-error-list li {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ミニカートモーダルの商品名（正しいセレクタ） */
.tf-mini-cart-item .tf-mini-cart-info .title {
    word-break: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* フッター: ニュースレター入力のスマホ対応 */
@media (max-width: 480px) {
    .subscribe-content {
        flex-wrap: wrap;
    }
    .subscribe-content input {
        width: 100%;
        flex: 1 1 100%;
    }
    .subscribe-content .tf-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== チェックアウト: 合計行の行間 ===== */
.tf-cart-totals-line {
    padding: 6px 0;
}

/* ===== スティッキーカートバー ===== */
.tf-sticky-btn-atc {
    padding-right: 60px;
}
.tf-sticky-btn-atc .tf-sticky-atc-btns,
.tf-sticky-btn-atc .tf-sticky-atc-infos form {
    display: flex;
    align-items: stretch;
    gap: 12px;
}
.tf-sticky-btn-atc .wg-quantity {
    height: auto;
    display: flex;
    align-items: stretch;
}
.tf-sticky-btn-atc .wg-quantity input,
.tf-sticky-btn-atc .wg-quantity .btn-quantity {
    height: auto;
}
.tf-sticky-btn-atc .tf-btn {
    display: inline-flex;
    align-items: center;
}
@media (max-width: 767px) {
    .tf-sticky-btn-atc {
        padding-right: 0;
    }
    .tf-sticky-btn-atc .tf-sticky-atc-infos form {
        flex-direction: row;
    }
    .tf-sticky-btn-atc .tf-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ===== 商品一覧: サイドバーフィルター ===== */
/* デスクトップではサイドバーは常に表示されるため、閉じるヘッダーは不要 */
.sidebar-filter .canvas-header {
    display: none;
}
@media (max-width: 1150px) {
    .sidebar-filter .canvas-header {
        display: flex;
    }
}

/* ── 商品詳細 ブロックコンテンツ ── */
.editor-tab-content {
    padding: 1.5rem 0;
    line-height: 1.8;
    font-size: 0.95rem;
}
.editor-tab-content img,
.shop-description img {
    max-width: min(100%, 700px);
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}
.editor-tab-content figure {
    margin: 1.5em 0;
}
/* 動画も画像と同じ上限にする（PCで全幅に広がると大きすぎる） */
.editor-tab-content .ratio,
.shop-description .ratio {
    max-width: min(100%, 700px);
}
.editor-tab-content .ratio {
    margin: 1.5em 0;
}
.editor-tab-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5em 0 0.5em;
}
.editor-tab-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.2em 0 0.4em;
}
.editor-tab-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1em 0 0.3em;
}
.editor-tab-content p {
    margin: 0.8em 0;
}

/* ── ショップ詳細 ブロックコンテンツ ── */
.shop-description {
    line-height: 1.8;
    font-size: 0.95rem;
}
.shop-description h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5em 0 0.5em;
}
.shop-description h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.2em 0 0.4em;
}
.shop-description p {
    margin: 0.8em 0;
}

/* チェックアウトフォームのラベル必須マーク: CSS ::after を無効化し HTML 側で制御 */
.form-checkout label::after {
    content: none;
}

/* ===== ショップオプション（BECOS風カードUI） ===== */
.so-choice-list { display: flex; flex-direction: column; gap: 4px; }
.so-choice-card {
    display: flex; align-items: center; gap: 12px;
    border: 2px solid #e5e7eb; border-radius: 6px; padding: 6px 10px;
    transition: border-color .15s;
}
.so-choice-card:hover { border-color: #aaa; }
.so-choice-card.so-selected { border-color: #d97706; }
.so-choice-img {
    width: 80px; height: 60px; object-fit: cover; border-radius: 4px; flex-shrink: 0;
}
.so-choice-none-thumb {
    width: 80px; height: 60px; display: flex; align-items: center; justify-content: center;
    background: #f3f4f6; border-radius: 4px; color: #6b7280; font-size: 14px; flex-shrink: 0;
}
.so-choice-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; font-size: 14px; }
.so-choice-price { color: #6b7280; font-size: 13px; }
.so-choice-price-free { color: #6b7280; font-size: 13px; }

/* フッター: メルマガ説明文を1行表示 */
.footer-newsletter .footer-menu_item { white-space: nowrap; }

/* ===== 法務ページ (利用規約・プライバシーポリシー・特商法) ===== */
.legal-content {
    font-size: 15px;
    line-height: 1.85;
    color: #333;
}
.legal-content > p { margin-bottom: 1em; }
.legal-content .legal-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 2.5em 0 0.75em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #eee;
}
.legal-content .legal-heading:first-child { margin-top: 0; }
.legal-content ol,
.legal-content ul {
    padding-left: 1.5em;
    margin: 0.5em 0 1em;
}
.legal-content ol li,
.legal-content ul li { margin-bottom: 0.4em; }
.legal-content .legal-effective-date {
    font-size: 0.85rem;
    color: #888;
}
.legal-content .legal-contact-box {
    margin-top: 3em;
    padding: 1.25em 1.5em;
    background: #f7f8fa;
    border-radius: 6px;
}
.legal-content .legal-contact-title {
    font-weight: 600;
    margin-bottom: 0.4em;
    color: #1a1a1a;
}
.legal-content .legal-contact-body { margin: 0; font-size: 0.95rem; }

/* 特商法テーブル */
.legal-content .legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5em;
}
.legal-content .legal-table th,
.legal-content .legal-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
    font-size: 0.95rem;
}
.legal-content .legal-table th {
    width: 220px;
    background: #f7f8fa;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .legal-content .legal-table th,
    .legal-content .legal-table td {
        display: block;
        width: 100%;
        white-space: normal;
    }
    .legal-content .legal-table th { border-bottom: none; padding-bottom: 4px; }
    .legal-content .legal-table td { padding-top: 4px; padding-bottom: 14px; }
}

/* 既存の richtext で書かれた法務ページ向けの最低限の整形 */
.legal-content h1, .legal-content h2, .legal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 2em 0 0.75em;
}
.legal-content h1 { font-size: 1.25rem; }

/* ============================================================
 * iOS Safari auto-zoom 防止: focus 時 zoom を起こす入力欄を
 * mobile (<640px) で 16px 以上に強制。PC では既存サイズ維持。
 * ============================================================ */
@media (max-width: 639px) {
  textarea,
  input[type=text],
  input[type=password],
  input[type=datetime],
  input[type=datetime-local],
  input[type=date],
  input[type=month],
  input[type=time],
  input[type=week],
  input[type=number],
  input[type=email],
  input[type=url],
  input[type=search],
  input[type=tel],
  input[type=color],
  select,
  .nice-select,
  .nice-select.small,
  .nice-select .list,
  .wg-quantity input,
  .form-control,
  .form-select {
    font-size: 16px;
  }
}


/* エディタ「ヘッダー設定」で sticky を OFF にした場合の上書き */
#header.header-no-sticky,
header#header.header-no-sticky {
    position: static !important;
    top: auto !important;
}

/* 商品詳細の商品名: SEO のため h5 → h1 に変更。見た目は従来の h5 サイズを維持する */
.tf-product-info-title h1 {
  font-size: 28px;
  line-height: 33.6px;
}
@media only screen and (max-width: 1149px) {
  .tf-product-info-wrap .tf-product-info-title h1 {
    font-size: 26px;
    line-height: 31.2px;
  }
}

/* 会員登録・住所フォームの国セレクトを入力欄と同じ見た目に揃える（ページ版・モーダル版共通） */
.ecp-country-select {
  width: 100%;
  height: 50px;
  padding: 12px 40px 12px 18px;
  border: 1px solid #ebebeb;
  border-radius: 3px;
  background-color: #fff;
  color: var(--main, #000);
  font-size: 14px;
  line-height: 24px;
  font-family: inherit;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23555' stroke-width='1.5' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  transition: border-color 0.2s ease-in-out;
}
.ecp-country-select:focus {
  border-color: var(--main, #000);
  outline: none;
}

/* モーダル内の国セレクトを、他フィールドの「入力済みフロートラベル」状態に合わせる */
.ecp-country-field { position: relative; margin-bottom: 15px; }
.ecp-country-field .ecp-country-select {
  padding-top: 20px;
  padding-bottom: 4px;
  padding-left: 14px;
}
.ecp-country-field .ecp-country-label {
  position: absolute;
  top: 4px;
  left: 14px;
  transform: scale(0.8);
  transform-origin: left top;
  color: #909090;
  font-size: 14px;
  line-height: 22px;
  margin: 0;
  pointer-events: none;
}

/* 越境EC: 海外お届け総額見積もりウィジェット（商品詳細） */
.tf-landed-cost {
  border: 1px solid #ebebeb;
  border-radius: 6px;
  background-color: #fff;
}
.tf-landed-cost > .tf-landed-cost-summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  color: var(--main, #000);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tf-landed-cost > .tf-landed-cost-summary::-webkit-details-marker {
  display: none;
}
.tf-landed-cost > .tf-landed-cost-summary::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-left: 8px;
  border-right: 1.5px solid #555;
  border-bottom: 1.5px solid #555;
  transform: rotate(45deg);
  transition: transform 0.2s ease-in-out;
  flex: 0 0 auto;
}
.tf-landed-cost[open] > .tf-landed-cost-summary::after {
  transform: rotate(-135deg);
}
.tf-landed-cost .tf-landed-cost-body {
  padding: 0 16px 16px;
}

/* 都道府県の選択欄（チェックアウト・会員登録・ギフト受取・ログインの新規登録）。
   隣のテキスト入力と同じ高さ・枠線にそろえ、矢印は欄の上に重ねる。 */
.ecp-prefecture-select {
  position: relative;
}
.ecp-prefecture-select select {
  width: 100%;
  height: 50px;
  padding: 12px 40px 12px 18px;
  font-size: 14px;
  line-height: 24px;
  color: var(--text-2);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
}
/* チェックアウトの入力欄は濃い文字（.form-checkout input）なので合わせる */
.form-checkout .ecp-prefecture-select select {
  color: var(--main);
}
/* iOS Safari auto-zoom 防止（上の mobile 16px 指定より詳細度が高い欄）: 都道府県・カート内の数量・メルマガ登録 */
@media (max-width: 639px) {
  .ecp-prefecture-select select,
  .wg-quantity.small input,
  .tf-cart-item .wg-quantity input,
  .form-newsletter-1 .subscribe-wrap input {
    font-size: 16px;
  }
  /* 16px で3桁の数量が収まるよう、カートの数量欄だけ幅を広げる（30px → 44px） */
  .tf-cart-item .wg-quantity {
    min-width: 100px;
    width: 100px;
  }
  .tf-cart-item .wg-quantity input {
    width: 44px;
  }
}
.ecp-prefecture-select::after,
.ecp-select-field::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--text-2);
  border-bottom: 1.5px solid var(--text-2);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
/* テーマの .tf-field.style-1 .tf-input（上25px・下6px）のままだと文字の入る高さが行の高さより低く、
   スマホ（16px）で選んだ都道府県の下が切れる。高さ50pxの中で文字の入る高さを行の高さに合わせる */
.tf-field.style-1.ecp-select-field select.tf-input {
  width: 100%;
  padding: 24px 40px 4px 18px;
  line-height: 20px;
  background: var(--white);
  appearance: none;
  -webkit-appearance: none;
}
/* 選択欄は空欄表示（placeholder）を持たないため、項目名は常に上に置く */
.ecp-select-field .tf-field-label {
  top: 4px;
  left: 14px;
  transform: scale(0.8);
  background-color: transparent;
  padding: 0;
  font-size: 14px;
}
/* 住所帳（Bootstrap の form-select）も隣の入力欄と同じ高さ・文字にそろえる */
.ecp-form-select {
  height: 50px;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-2);
  border-color: var(--line);
  border-radius: 3px;
}

/* 購入完了画面: 購入した商品のシェア（SNS・リンクコピー・端末の共有メニュー） */
.ecp-purchase-share__item {
  padding: 16px;
  margin-bottom: 12px;
  background: var(--bg-11, #f5f5f5);
  border-radius: 4px;
}
.ecp-purchase-share__product {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--main);
}
.ecp-purchase-share__product img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--white);
  flex-shrink: 0;
}
.ecp-purchase-share__name {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.ecp-purchase-share__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.ecp-purchase-share__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--main);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.ecp-purchase-share__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  color: var(--main);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  white-space: nowrap;
}
.ecp-purchase-share__button[hidden],
.ecp-purchase-share__done-icon,
.ecp-purchase-share__done-text,
.ecp-purchase-share__button.is-copied .ecp-purchase-share__copy-icon,
.ecp-purchase-share__button.is-copied .ecp-purchase-share__copy-text {
  display: none;
}
.ecp-purchase-share__copy-icon,
.ecp-purchase-share__button.is-copied .ecp-purchase-share__done-icon {
  display: inline-flex;
}
.ecp-purchase-share__button.is-copied .ecp-purchase-share__done-text {
  display: inline;
}
.ecp-purchase-share__icon:hover,
.ecp-purchase-share__button:hover {
  border-color: var(--main);
}
.ecp-purchase-share__status {
  margin: 0;
  font-size: 14px;
  color: var(--main);
}
.ecp-purchase-share__status:empty {
  display: none;
}

/* リッチテキスト（規約・紹介文など）: テーマの見出しサイズ（h2=68px 等）は本文用には大きすぎるため、
   本文の文字サイズを基準にした大きさと余白にする。テーマのリセットで消える箇条書きの記号も戻す */
.builder-rich-text :is(h1, h2, h3, h4, h5, h6) {
  margin: 1.8em 0 0.6em;
  line-height: 1.4;
  text-wrap: pretty;
}
.builder-rich-text h1 { font-size: 2em; }
.builder-rich-text h2 { font-size: 1.6em; }
.builder-rich-text h3 { font-size: 1.3em; }
.builder-rich-text h4 { font-size: 1.15em; }
.builder-rich-text :is(h5, h6) { font-size: 1em; }
.builder-rich-text > :first-child { margin-top: 0; }
.builder-rich-text :is(p, ul, ol) {
  margin: 0 0 1em;
  line-height: 1.8;
}
.builder-rich-text :is(ul, ol) { padding-left: 1.5em; }
.builder-rich-text ul { list-style: disc; }
.builder-rich-text ol { list-style: decimal; }
.builder-rich-text li { margin-bottom: 0.3em; }
.builder-rich-text > :last-child { margin-bottom: 0; }

/* 日本語の折り返し（ui-layout-wording-audit で追記）: 文節の途中で改行せず、最終行が1〜2文字だけ残るのを避ける。
   auto-phrase に対応するブラウザ（Chrome/Edge）だけで効かせる。iPhone の Safari は pretty だけが効き、
   段落全体の行の長さをそろえようとして行を右端の手前で折り、言葉の途中で改行されて見えた（2026-10-18 商品説明）。
   Safari は普通の折り返し（行を右端まで使う）にする */
@supports (word-break: auto-phrase) {
  html:lang(ja) body {
    word-break: auto-phrase;
    text-wrap: pretty;
  }
}

/* スマホ下部ツールバー: チャットを足して6項目になり、テーマ既定（1項目20%）だとカートが画面外に出る。均等割りにする */
.tf-toolbar-bottom .toolbar-item {
    flex: 1 1 0;
    min-width: 0;
}
.tf-toolbar-bottom .toolbar-item a {
    padding-right: 4px;
    padding-left: 4px;
}
/* ヘッダーのロゴ: テーマは幅だけ固定（110/136px）のため、正方形ロゴだと高さも110px超になり言語切替・アイコンに重なる。高さで抑える */
.logo-header img {
    width: auto;
    max-width: 136px;
    max-height: 56px;
    object-fit: contain;
}
@media (max-width: 1149px) {
    .logo-header img {
        max-width: 110px;
        max-height: 40px;
    }
}
/* 注文明細の表（マイページ注文詳細・注文完了・再決済）: テーマの見出しは中央寄せ・値は左寄せのため金額が見出しの下に来ず、
   ショップごとに表が分かれると列の位置も商品名の長さで変わる。単価・数量・小計の列は幅を決めて見出しと値をそろえる。
   スマホ（〜767px）はテーマが見出し行を隠す（注文詳細は縦積み）ため対象外 */
@media (min-width: 768px) {
    /* 見出し（左右の余白0）と値（左右10px）の余白もそろえる。表の右端の列は値も右の余白0 */
    .tf-table-page-cart :is(th, td).ec-col-amount {
        width: 120px;
        padding-inline: 10px;
        text-align: end;
        white-space: nowrap;
    }
    .tf-table-page-cart :is(th, td).ec-col-amount:last-child {
        padding-inline-end: 0;
    }
    .tf-table-page-cart :is(th, td).ec-col-qty {
        width: 80px;
        padding-inline: 10px;
        text-align: center;
        white-space: nowrap;
    }
}

/* ボタンの色をブラウザ任せにしない: テーマのリンクや数量の＋／−を、フォーム送信のため <button> に置き換えた箇所がある。
   背景・文字色を指定していないボタンは、iPhoneで青い背景・白い文字（白地の「更新」は文字が消える）、PCのChromeで灰色の枠付きになる。
   :where で詳細度0にし、クラスで色を決めているボタンはそのまま */
:where(button) {
    color: inherit;
    background-color: transparent;
}
/* 文字だけの「削除」と数量の＋／−は、ブラウザ標準の枠線・余白も消す */
.tf-cart-item .remove-cart,
.tf-mini-cart-remove,
.wg-quantity button.btn-quantity {
    border: 0;
    padding: 0;
}


/* 日本語のフォームボタン: 欧文フォントの行枠より上に見える文字だけを補正。 */
.tf-btn:lang(ja) > .ec-button-label {
  position: relative;
  top: .1em;
}

/* ============================================================
   ヘッダーの言語切替（スマホ）
   三本線が出る幅（〜1149px）では、右のアイコン列（col-3）に検索・カート・チャットと並べると入りきらず、
   言語ボタンがロゴに重なっていた（2026-10-04 itoshio.com）。三本線の隣（左の空いている列）に出し、右からは外す。
   ============================================================ */
.ec-header-menu-start { gap: 12px; }
.nav-locale--menu .nav-icon-item { display: inline-flex; align-items: center; gap: 2px; color: inherit; }
/* 幅320px（iPhone SE）ではロゴ列が左へ広がり、▼がロゴに触れるため間隔を詰める */
@media (max-width: 359.98px) {
    .ec-header-menu-start { gap: 6px; }
    .nav-locale--menu .dropdown-toggle::after { margin-left: 1px; }
}
@media (max-width: 1149.98px) {
    /* styles.css の「#header .nav-icon li { display: inline-flex }」より強くする */
    #header .nav-icon .nav-locale--icons,
    .nav-icon .nav-locale--icons { display: none; }
}
@media (min-width: 1150px) {
    .nav-locale--menu { display: none; }
}

/* ============================================================
   ヘッダーの言語切替の一覧（PC・スマホ・全サイト共通）
   styles.css の「#header .nav-icon li { display: inline-flex }」が一覧の li にも効き、選択中の行が右にずれ、
   Bootstrap 既定の青で塗られていた（2026-10-04）。一覧を作り直す。色はテーマの文字色を使い、どのサイトにも合わせる。
   サイト独自の配色は「サイト全体の見た目」の CSS（body #header …）で上書きできる。
   ============================================================ */
#header .nav-locale .dropdown-toggle { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border: 1px solid rgba(0, 0, 0, .15); border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .06em; line-height: 1; }
#header .nav-locale .dropdown-toggle::after { margin-left: 2px; vertical-align: middle; }
#header .nav-locale .dropdown-toggle:hover,
#header .nav-locale .dropdown-toggle[aria-expanded="true"] { border-color: currentColor; }
#header .nav-locale .dropdown-menu { min-width: 180px; margin-top: 8px; padding: 6px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 10px; background: #fff; box-shadow: 0 12px 32px rgba(0, 0, 0, .12); }
#header .nav-locale .dropdown-menu li { display: block; float: none; width: auto; height: auto; margin: 0; padding: 0; }
#header .nav-locale .dropdown-menu .dropdown-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; border-radius: 6px; background: transparent; color: inherit; font-size: 14px; line-height: 1.4; white-space: nowrap; }
#header .nav-locale .dropdown-menu .dropdown-item:hover,
#header .nav-locale .dropdown-menu .dropdown-item:focus-visible { background: rgba(0, 0, 0, .05); color: inherit; outline: 0; }
#header .nav-locale .dropdown-menu .dropdown-item.active,
#header .nav-locale .dropdown-menu .dropdown-item:active { background: transparent; color: inherit; font-weight: 600; }
#header .nav-locale .dropdown-menu .dropdown-item.active::after { content: "\2713"; font-size: 13px; }
@media (max-width: 1149.98px) {
    #header .nav-locale .dropdown-toggle { height: 28px; padding: 0 9px; }
    #header .nav-locale .dropdown-menu { min-width: 200px; }
    #header .nav-locale .dropdown-menu .dropdown-item { padding: 12px 16px; font-size: 15px; }
}
