/* (08/11/2026) Footer หน้าร้านใหม่ — shopping/includes/shop_footer.php · prefix .sft-
   พื้นเข้ม = สี Button Shopping (--shd-c2) ผสมดำ · แสงเรือง = สี Header (--shd-c1) · ไม่ fix สีแบรนด์
   [FOOT-DARK] 23/11/2026 ปรับตาม mockup (แบบเดียวกับ PR9 Dev): ขอบคลื่นด้านบน (SVG ระบายสีพื้นส่วนบน --sft-top) + เส้นเรืองแสง · เส้นคั่นคอลัมน์
   · หัวข้อมีไอคอน+ขีดเส้นใต้ · มือถือ accordion · ปุ่มแชทอยู่ในคอลัมน์ติดตามเรา (เลิกปุ่มลอย)
   สีทอง --sft-accent = สีตกแต่ง (เส้นใต้หัวข้อ/เส้นเรือง) ไม่ใช่สีแบรนด์ */
.sft {
    --sft-c1: var(--shd-c1, #2cabe3);
    --sft-c2: var(--shd-c2, #0a4069);
    --sft-accent: #ffc93c;
    --sft-bg: color-mix(in srgb, var(--sft-c2) 82%, #020617);
    --sft-line: rgba(255, 255, 255, .16);
    position: relative; margin-top: 0; padding-top: 80px; overflow: hidden;
    background: var(--sft-bg);
    background:
        radial-gradient(55% 90% at 90% 0%, color-mix(in srgb, var(--sft-c1) 42%, transparent), transparent 62%),
        radial-gradient(45% 75% at 0% 100%, color-mix(in srgb, var(--sft-c1) 30%, transparent), transparent 65%),
        linear-gradient(165deg, color-mix(in srgb, var(--sft-c2) 62%, #020617) 0%, color-mix(in srgb, var(--sft-c2) 92%, #020617) 52%, color-mix(in srgb, var(--sft-c2) 72%, #020617) 100%);
    color: rgba(255, 255, 255, .82); font-size: 14.5px; line-height: 1.6;
}
.sft *, .sft *::before, .sft *::after { box-sizing: border-box; }
.sft-wave { position: absolute; left: 0; top: -1px; width: 100%; height: 91px; display: block; pointer-events: none; }
.sft-wave-fill { fill: var(--sft-top, transparent); } /* สีพื้นส่วนเหนือ footer — JS ใน shop_footer.php ตั้ง --sft-top */
.sft-wrap { position: relative; max-width: 1720px; margin: 0 auto; padding: 0 clamp(16px, 2.4vw, 40px); }
.sft-grid {
    display: grid; grid-template-columns: minmax(260px, 1.55fr) repeat(3, minmax(140px, 1fr)) minmax(230px, 1.25fr);
    gap: 0; padding: 0 0 32px;
}
.sft-grid > * { padding: 0 26px; min-width: 0; }
.sft-grid > :first-child { padding-left: 0; }
.sft-grid > * + * { border-left: 1px solid var(--sft-line); }

/* โลโก้ + ชื่อ + ข้อมูลติดต่อ */
.sft-logo { display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 14px; background: #fff; }
.sft-logo img { display: block; max-height: 48px; max-width: 160px; object-fit: contain; }
.sft-name { margin-top: 14px; font-size: 16.5px; font-weight: 700; color: #fff; }
.sft-info { list-style: none; margin: 14px 0 0; padding: 0; }
.sft-info li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 14.5px; color: rgba(255, 255, 255, .82); }
.sft-info li svg { flex: 0 0 auto; margin-top: 2px; color: #fff; }
.sft-info li span, .sft-info li a { min-width: 0; overflow-wrap: anywhere; }
.sft-info a { color: rgba(255, 255, 255, .82) !important; text-decoration: none; }
.sft-info a:hover { color: var(--sft-accent) !important; }

/* หัวข้อคอลัมน์ */
.sft-col h3 { margin: 4px 0 18px; padding: 0; font-size: 17px; font-weight: 700; color: #fff; }
.sft-tg {
    position: relative; display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 0 0 10px;
    border: 0; background: none; color: inherit; font: inherit; line-height: 1.3; cursor: default; -webkit-appearance: none; appearance: none;
}
.sft-tg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--sft-accent); }
.sft-tg svg { flex: 0 0 auto; }
.sft-chev { display: none; }
.sft-links { display: flex; flex-direction: column; gap: 11px; }
.sft-links a { color: rgba(255, 255, 255, .82) !important; text-decoration: none; transition: color .15s; }
.sft-links a:hover { color: #fff !important; }

/* ติดตามเรา : Social วงกลมขาว / ปุ่มแชท / เบอร์ Support */
.sft-social { display: flex; flex-wrap: wrap; gap: 12px; }
.sft-soc {
    width: 42px; height: 42px; border-radius: 50%; display: inline-flex !important; align-items: center; justify-content: center;
    background: #fff; color: var(--sft-c2) !important; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); transition: transform .15s, background .15s, color .15s;
}
.sft-soc:hover { transform: translateY(-2px); color: #fff !important; }
.sft-soc--facebook:hover { background: #1877f2; }
.sft-soc--line:hover { background: #06c755; }
.sft-soc--youtube:hover { background: #ff0000; }
.sft-soc--instagram:hover { background: #d62976; }
.sft-soc--tiktok:hover { background: #111; }
.sft-chat {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; height: 44px; padding: 0 22px; border-radius: 999px;
    background: linear-gradient(120deg, var(--sft-c1), color-mix(in srgb, var(--sft-c1) 45%, #7c4dff));
    color: #fff !important; font-weight: 600; text-decoration: none; box-shadow: 0 6px 18px color-mix(in srgb, var(--sft-c1) 40%, transparent);
}
.sft-chat:hover { filter: brightness(1.08); }
.sft-call { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: #fff !important; text-decoration: none; }
.sft-social + .sft-call, .sft-tg + .sft-call, h3 + .sft-call { margin-top: 4px; }
.sft-call svg { flex: 0 0 auto; }
.sft-call b { display: block; font-size: 18px; font-weight: 700; line-height: 1.3; }
.sft-call small { display: block; font-size: 13px; color: rgba(255, 255, 255, .7); }
.sft-call:hover b { color: var(--sft-accent); }

/* copyright + เส้นเรืองแสง */
.sft-bottom { position: relative; }
.sft-bottom-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 56px; padding-top: 14px; padding-bottom: 18px; font-size: 13.5px; color: rgba(255, 255, 255, .72); }
.sft-bottom-in::before {
    content: ""; position: absolute; left: clamp(16px, 2.4vw, 40px); right: clamp(16px, 2.4vw, 40px); top: 0; height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .22) 55%, var(--sft-accent) 86%, transparent);
    box-shadow: 0 0 8px color-mix(in srgb, var(--sft-accent) 40%, transparent);
}
.sft-bottom a { color: #fff !important; font-weight: 600; text-decoration: none; }
.sft-bottom a:hover { text-decoration: underline; }

.sft-dialog { width: min(820px, calc(100vw - 32px)); max-height: 82vh; padding: 0; border: 0; border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.sft-dialog::backdrop { background: rgba(15, 23, 42, .55); }
.sft-dialog-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #fff; border-bottom: 1px solid #e6ebf2; }
.sft-dialog-head h2 { margin: 0; font-size: 19px; font-weight: 700; }
.sft-dialog-x { width: 38px; height: 38px; border: 0; border-radius: 12px; background: #f1f5f9; font-size: 22px; line-height: 1; cursor: pointer; }
.sft-dialog-body { padding: 18px 22px 24px; overflow-y: auto; max-height: calc(82vh - 72px); font-size: 15px; line-height: 1.7; color: #1f2937; }
.sft-dialog-body img { max-width: 100%; height: auto; }

@media (max-width: 1199px) {
    .sft-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 30px; }
    .sft-brand, .sft-follow { grid-column: 1 / -1; }
    .sft-grid > *, .sft-grid > :first-child { padding: 0 20px 0 0; }
    .sft-grid > * + * { border-left: 0; }
}

/* มือถือ : โลโก้กลาง · หัวข้อกดเปิด/ปิด · ติดตามเรากลาง ปุ่มเต็มความกว้าง */
@media (max-width: 767px) {
    .sft { padding-top: 58px; padding-bottom: 72px; } /* เว้นแถบเมนูล่างมือถือ */
    .sft-grid { grid-template-columns: 1fr; gap: 0; padding-bottom: 22px; }
    .sft-grid > *, .sft-grid > :first-child { padding: 0; border-left: 0; }
    .sft-brand { text-align: center; padding-bottom: 24px; }
    .sft-info { display: inline-block; max-width: 340px; margin-top: 18px; text-align: left; }
    .sft-info li { font-size: 15px; margin-bottom: 11px; }
    .sft-acc, .sft-follow { border-top: 1px solid rgba(255, 255, 255, .18) !important; }
    .sft-acc h3 { margin: 0; }
    .sft-acc .sft-tg { display: flex; width: 100%; gap: 14px; padding: 16px 4px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
    .sft-acc .sft-tg::after { display: none; }
    .sft-acc .sft-tg:focus-visible { outline: 2px solid var(--sft-accent); outline-offset: -2px; border-radius: 8px; }
    .sft-acc .sft-tx { flex: 1; text-align: left; }
    .sft-acc .sft-chev { display: inline-flex; transition: transform .25s; }
    .sft-acc.is-open .sft-chev { transform: rotate(180deg); }
    .sft-acc .sft-links { display: none; padding: 0 4px 16px 40px; }
    .sft-acc.is-open .sft-links { display: flex; }
    .sft-follow { text-align: center; padding-top: 24px !important; }
    .sft-follow .sft-tg svg { display: none; }
    .sft-social { justify-content: center; gap: 18px; }
    .sft-chat { display: flex; justify-content: center; width: 100%; height: 52px; margin-top: 22px; font-size: 17px; }
    .sft-call { justify-content: center; width: 100%; margin-top: 16px; padding: 9px 16px; border: 1.5px solid rgba(255, 255, 255, .75); border-radius: 999px; text-align: left; }
    .sft-social + .sft-call, h3 + .sft-call { margin-top: 16px; }
    .sft-bottom-in { flex-direction: column; justify-content: center; gap: 4px; text-align: center; }
    .sft-bottom a { text-decoration: underline; }
}
