/* ============================================
   88Life - Welcart 用追加スタイル
   wc_templates 配下のページでのみ読み込まれる
   ============================================ */

/* 商品詳細 */
.welcart-item-single {
    padding: 32px 0 64px;
}
.welcart-item-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.welcart-item-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: #f7f4ec;
    object-fit: contain;
}
.welcart-item-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: #2d2d2d;
    margin: 0 0 16px;
}
.welcart-item-price {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.6rem;
    color: #c8a84e;
    margin: 0 0 24px;
    letter-spacing: 0.05em;
}
.welcart-item-content {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 2;
    color: #4a4a4a;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .welcart-item-grid { grid-template-columns: 1fr; gap: 24px; }
    .welcart-item-title { font-size: 1.4rem; }
    .welcart-item-price { font-size: 1.3rem; }
}

/* Welcart 共通フォーム */
.welcart-page {
    padding: 40px 0 80px;
    min-height: 60vh;
}
.welcart-page .page-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.8rem;
    color: #2d2d2d;
    margin: 0 0 24px;
    text-align: center;
    letter-spacing: 0.05em;
}

/* Welcart 標準テーブル */
.welcart-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
}
.welcart-page table th,
.welcart-page table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e5e0d2;
    text-align: left;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: .95rem;
}
.welcart-page table th {
    background: #f7f4ec;
    font-weight: 500;
    color: #2d2d2d;
}

/* Welcart 標準ボタン */
.welcart-page input[type="submit"],
.welcart-page button[type="submit"],
.welcart-page .button {
    display: inline-block;
    padding: 12px 28px;
    background: #2d2d2d;
    color: #fff;
    border: 1.5px solid #2d2d2d;
    border-radius: 999px;
    font-family: 'Noto Serif JP', serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all .2s ease;
}
.welcart-page input[type="submit"]:hover,
.welcart-page button[type="submit"]:hover,
.welcart-page .button:hover {
    background: #c8a84e;
    border-color: #c8a84e;
}

/* テキスト入力 */
.welcart-page input[type="text"],
.welcart-page input[type="email"],
.welcart-page input[type="tel"],
.welcart-page input[type="password"],
.welcart-page select,
.welcart-page textarea {
    width: 100%;
    max-width: 420px;
    padding: 10px 14px;
    border: 1.5px solid #d4cab1;
    border-radius: 6px;
    background: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: .95rem;
}

/* 完了ページ */
.welcart-completion {
    text-align: center;
}
.welcart-completion-note {
    margin: 24px 0;
    color: #6a6a6a;
}

/* ============================================
   商品詳細ページ専用スタイル
   ============================================ */
.welcart-item-page {
    padding-top: var(--header-height, 80px);
    background: #fff;
}
.welcart-item-hero {
    padding: 40px 0 80px;
}
.welcart-item-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: flex-start;
}
@media (max-width: 768px) {
    .welcart-item-grid { grid-template-columns: 1fr; gap: 24px; }
    .welcart-item-hero { padding: 16px 0 48px; }
}

/* ギャラリー */
.welcart-item-mainimage {
    width: 100%;
    background: #f7f4ec;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.welcart-item-mainimage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.welcart-item-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.welcart-item-thumb {
    width: 80px;
    height: 80px;
    background: #f7f4ec;
    border: 1.5px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .2s ease;
}
.welcart-item-thumb:hover,
.welcart-item-thumb.active {
    border-color: #c8a84e;
}
.welcart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 情報エリア */
.welcart-item-info { padding-top: 8px; }
.welcart-item-badge {
    display: inline-block;
    padding: 4px 14px;
    font-size: .8rem;
    font-family: 'Noto Serif JP', serif;
    color: #fff;
    border-radius: 999px;
    margin-bottom: 12px;
    letter-spacing: 0.1em;
}
.badge-seimai { background: #c8a84e; }
.badge-genmai { background: #6a8e50; }
.badge-gift   { background: #c87a4e; }

.welcart-item-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.9rem;
    font-weight: 500;
    color: #2d2d2d;
    margin: 0 0 14px;
    line-height: 1.4;
}
.welcart-item-price {
    font-family: 'Noto Serif JP', serif;
    color: #c8a84e;
    font-size: 1.9rem;
    font-weight: 500;
    margin: 0 0 16px;
    letter-spacing: 0.04em;
}
.welcart-item-price-unit {
    font-size: 1rem;
    color: #6a6a6a;
    margin-left: 4px;
    letter-spacing: 0.1em;
}
.welcart-item-code {
    font-size: .85rem;
    color: #7a7a7a;
    margin: 0 0 24px;
    font-family: 'Noto Sans JP', sans-serif;
}
.welcart-item-code-label { color: #b0b0b0; margin-right: 4px; }

/* カートフォーム */
.welcart-item-cart-form {
    background: #faf8f2;
    border: 1px solid #ede6d2;
    border-radius: 10px;
    padding: 24px;
    margin: 0 0 28px;
}
.welcart-item-cart-form table {
    width: 100%;
    margin-bottom: 16px;
}
.welcart-item-cart-form table th,
.welcart-item-cart-form table td {
    padding: 8px 6px;
    border-bottom: 1px dashed #ede6d2;
    background: transparent;
    font-size: .9rem;
}
.welcart-item-cart-form input[type="number"] {
    max-width: 80px;
    text-align: center;
}
.welcart-item-cart-form .skubutton,
.welcart-item-cart-form input[type="submit"] {
    display: block;
    width: 100%;
    padding: 14px 28px;
    background: #2d2d2d;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: 'Noto Serif JP', serif;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all .2s ease;
}
.welcart-item-cart-form .skubutton:hover,
.welcart-item-cart-form input[type="submit"]:hover {
    background: #c8a84e;
}

/* メタ情報リスト */
.welcart-item-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #ede6d2;
}
.welcart-item-meta li {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #ede6d2;
    font-size: .92rem;
}
.welcart-item-meta .meta-label {
    width: 92px;
    color: #7a7a7a;
    font-family: 'Noto Serif JP', serif;
}
.welcart-item-meta .meta-value {
    flex: 1;
    color: #2d2d2d;
}

/* 商品説明 */
.welcart-item-description {
    padding: 60px 0;
    background: #faf8f2;
}
.welcart-item-section-title {
    text-align: left;
    margin: 0 0 24px;
    display: flex;
    align-items: baseline;
    gap: 16px;
}
.welcart-item-section-title.center {
    justify-content: center;
}
.welcart-item-section-script {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    font-weight: 700;
    color: #c8a84e;
    line-height: 1;
}
.welcart-item-section-sub {
    font-family: 'Noto Serif JP', serif;
    font-size: 1rem;
    color: #2d2d2d;
    letter-spacing: 0.15em;
}
.welcart-item-description-body {
    max-width: 760px;
    margin: 0 auto;
    line-height: 2;
    color: #4a4a4a;
    font-family: 'Noto Sans JP', sans-serif;
}

/* 関連商品 */
.welcart-item-related {
    padding: 60px 0 80px;
    background: #fff;
}

/* ============================================
   カートページ専用スタイル
   ============================================ */
.welcart-cart-page {
    padding-top: var(--header-height, 80px);
    background: #fff;
}
.welcart-cart-header {
    padding: 40px 0 32px;
    background: #faf8f2;
    border-bottom: 1px solid #ede6d2;
    text-align: center;
}
.welcart-cart-title {
    margin: 0 0 24px;
    line-height: 1.2;
}
.welcart-cart-title-script {
    display: block;
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    font-weight: 700;
    color: #c8a84e;
}
.welcart-cart-title-sub {
    display: block;
    font-family: 'Noto Serif JP', serif;
    font-size: 1.1rem;
    color: #2d2d2d;
    margin-top: 4px;
    letter-spacing: 0.15em;
}

/* ステップインジケーター */
.welcart-step-indicator {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    max-width: 720px;
    flex-wrap: nowrap;
}
.welcart-step-indicator li {
    flex: 1;
    text-align: center;
    color: #b0b0b0;
    font-family: 'Noto Serif JP', serif;
    font-size: .8rem;
    position: relative;
}
.welcart-step-indicator li::after {
    content: '';
    position: absolute;
    top: 14px;
    right: -8px;
    width: 16px;
    height: 1px;
    background: #d4cab1;
}
.welcart-step-indicator li:last-child::after { display: none; }
.welcart-step-indicator .step-num {
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ede6d2;
    color: #b0b0b0;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 4px;
}
.welcart-step-indicator .step-label {
    display: block;
    font-size: .75rem;
    letter-spacing: 0.05em;
}
.welcart-step-indicator li.active .step-num {
    background: #2d2d2d;
    color: #fff;
}
.welcart-step-indicator li.active {
    color: #2d2d2d;
    font-weight: 500;
}
@media (max-width: 768px) {
    .welcart-step-indicator { font-size: .72rem; }
    .welcart-step-indicator .step-num { width: 24px; height: 24px; font-size: .8rem; }
    .welcart-step-indicator .step-label { font-size: .65rem; }
}

/* カート本体 */
.welcart-cart-body {
    padding: 48px 0;
}
.welcart-cart-empty {
    text-align: center;
    padding: 80px 0;
}
.welcart-cart-empty-icon {
    font-size: 3rem;
    margin: 0 0 16px;
}
.welcart-cart-empty-text {
    font-family: 'Noto Serif JP', serif;
    color: #4a4a4a;
    margin: 0 0 24px;
}

/* Welcart 標準カートテーブル装飾上書き */
.welcart-cart-content table,
.welcart-cart-content table.cart_table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
    background: #fff;
}
.welcart-cart-content th,
.welcart-cart-content td {
    padding: 14px 12px;
    border-bottom: 1px solid #ede6d2;
    text-align: left;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: .95rem;
}
.welcart-cart-content th {
    background: #faf8f2;
    font-family: 'Noto Serif JP', serif;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #2d2d2d;
}
.welcart-cart-content img {
    max-width: 80px;
    height: auto;
    border-radius: 4px;
}
.welcart-cart-content input[type="number"],
.welcart-cart-content input[type="text"] {
    width: 64px;
    text-align: center;
    padding: 6px 8px;
    border: 1px solid #d4cab1;
    border-radius: 4px;
}
.welcart-cart-content input[type="submit"],
.welcart-cart-content button[type="submit"] {
    display: inline-block;
    padding: 12px 28px;
    background: #2d2d2d;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: 'Noto Serif JP', serif;
    cursor: pointer;
    margin: 4px;
    transition: all .2s ease;
}
.welcart-cart-content input[type="submit"]:hover {
    background: #c8a84e;
}

.welcart-cart-actions-sub {
    margin-top: 32px;
    text-align: center;
}
.welcart-cart-continue {
    color: #6a6a6a;
    font-family: 'Noto Serif JP', serif;
    text-decoration: none;
    transition: color .2s ease;
}
.welcart-cart-continue:hover {
    color: #c8a84e;
}

/* 安心情報グリッド */
.welcart-cart-assurance {
    padding: 60px 0;
    background: #faf8f2;
    border-top: 1px solid #ede6d2;
}
.welcart-assurance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .welcart-assurance-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
.welcart-assurance-item {
    text-align: center;
    padding: 16px;
}
.welcart-assurance-icon {
    font-size: 1.8rem;
    margin: 0 0 8px;
}
.welcart-assurance-title {
    font-family: 'Noto Serif JP', serif;
    font-weight: 500;
    color: #2d2d2d;
    margin: 0 0 6px;
    font-size: .95rem;
}
.welcart-assurance-desc {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: .85rem;
    color: #6a6a6a;
    margin: 0;
    line-height: 1.6;
}
.welcart-assurance-desc a {
    color: #c8a84e;
    text-decoration: underline;
}

