/* ลอกจากเว็บจริงอัตโนมัติ: การ์ดหนังสือ · ป้าย · ท้ายเว็บ · แถบความน่าเชื่อถือ (#gridContainer → .grid) */
.card { touch-action: manipulation; }
.card-title { font-family: Mitr, Sarabun, sans-serif; }
.card { background: rgb(255, 255, 255); border-radius: 12px; overflow: hidden; box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 6px; cursor: pointer; }
.card.pending .card-img { opacity: 0.55; }
.card-img-wrap { position: relative; width: 100%; background: rgb(242, 236, 250); display: block; }
.card-img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; display: block; }
.card { transition: transform 0.12s, box-shadow 0.12s; }
.card:active { transform: scale(0.985); }
@media (hover: hover){.card:hover { transform: translateY(-3px); box-shadow: rgba(122, 90, 158, 0.2) 0px 6px 16px; }}
@media (prefers-reduced-motion: reduce){.card, .card:hover, .card:active { transition: none; transform: none; }}
.status-badge { position: absolute; top: 8px; right: 8px; color: rgb(255, 255, 255); padding: 4px 11px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.status-badge.available { background: rgba(34, 197, 94, 0.94); }
.status-badge.pending { background: rgba(201, 154, 46, 0.92); }
.photo-badge { position: absolute; bottom: 8px; left: 8px; background: rgba(122, 90, 158, 0.88); color: rgb(255, 255, 255); font-size: 11px; padding: 4px 9px; border-radius: 20px; display: flex; align-items: center; gap: 4px; font-weight: 500; }
.card-body { padding: 10px; }
.card-title { font-size: 13px; color: rgb(85, 56, 119); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; min-height: 2.7em; margin-bottom: 2px; }
.card-price { font-size: 17px; font-weight: 700; color: rgb(85, 56, 119); margin-bottom: 8px; }
.site-footer { padding: 28px 20px 40px; text-align: center; color: rgb(43, 34, 56); border-top: 1px solid rgb(242, 236, 250); margin-top: 12px; }
.site-footer img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgb(227, 215, 243); margin-bottom: 10px; }
.site-footer h3 { color: rgb(106, 74, 143); font-size: 16px; margin-bottom: 8px; font-family: Mitr, sans-serif; }
.site-footer p { font-size: 13px; line-height: 1.7; max-width: 440px; margin: 0px auto 14px; }
@media (max-width: 480px){.card-body { padding: 9px 10px 10px; }}
@media (max-width: 480px){.card-title { font-size: 12.5px; }}
@media (max-width: 480px){.card-price { font-size: 15px; margin-bottom: 6px; }}
@media (max-width: 480px){.status-badge { font-size: 11px; padding: 3px 8px; top: 6px; right: 6px; }}
@media (max-width: 480px){.photo-badge { font-size: 10px; padding: 3px 7px; bottom: 6px; left: 6px; }}
.card-img { aspect-ratio: 4 / 5; }
.card-body { padding: 8px 10px; }
.card-title { margin-bottom: 4px; }
.card-price-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 36px; }
.card-price-row .card-price { margin-bottom: 0px; }
.fav-btn { flex: 0 0 auto; width: 40px; height: 40px; margin: -4px -6px -4px 0px; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; background: transparent; cursor: pointer; padding: 0px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.fav-btn svg { width: 21px; height: 21px; fill: none; stroke: rgb(183, 155, 214); stroke-width: 2; transition: transform 0.15s; }
.fav-btn:active svg { transform: scale(1.25); }
.promo-badge { position: absolute; right: 8px; bottom: 8px; z-index: 1; background: rgb(194, 69, 42); color: rgb(255, 255, 255); font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 10px; box-shadow: rgba(224, 36, 94, 0.35) 0px 1px 4px; }
.was { color: rgb(122, 112, 144); text-decoration: line-through; font-weight: 600; font-size: 0.8em; margin-right: 4px; }
.now-promo { color: rgb(194, 69, 42); }
.new-badge { position: absolute; top: 8px; left: 8px; z-index: 1; background: rgb(194, 69, 42); color: rgb(255, 255, 255); font-size: 10.5px; font-weight: 800; letter-spacing: 0.5px; padding: 3px 8px; border-radius: 10px; box-shadow: rgba(232, 87, 138, 0.35) 0px 1px 4px; }
@media (max-width: 480px){.card-body { padding: 7px 9px; }}
@media (max-width: 480px){.card-title { font-size: 12.5px; margin-bottom: 2px; }}
@media (max-width: 480px){.card-price { font-size: 15px; }}
@media (max-width: 480px){.new-badge { top: 6px; left: 6px; font-size: 10px; padding: 2px 7px; }}
.img-badges { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; flex-wrap: wrap-reverse; align-items: flex-end; gap: 4px; pointer-events: none; z-index: 1; }
.img-badges .photo-badge { position: static; }
.img-badges .promo-badge { position: static; margin-left: auto; }
@media (max-width: 480px){.img-badges { left: 6px; right: 6px; bottom: 6px; }}
.card-title { font-family: Mitr, Sarabun, sans-serif; font-weight: 500; }
.card-meta { margin: 2px 0px 4px; min-height: 36px; }
.cm-l { font-size: 12.5px; line-height: 18px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card { border-radius: var(--r); border: 1px solid var(--line); box-shadow: none; background: var(--paper); }
.new-badge { background: var(--plum); color: rgb(255, 255, 255); font-family: Mitr, sans-serif; font-weight: 500; letter-spacing: 0px; }
@media (min-width: 1100px){.site-footer { margin-left: calc(250px + max(16px, -750px + 50vw)) !important; margin-right: 16px; }}
.card { position: relative; border: 0px; border-radius: var(--r); background: var(--paper); box-shadow: rgba(43, 34, 56, 0.06) 0px 1px 2px, rgba(43, 34, 56, 0.06) 0px 4px 14px; overflow: hidden; }
.card-img-wrap { background: rgb(243, 238, 248); }
.status-badge.available { display: none; }
.status-badge { top: 8px; right: auto; left: 8px; height: 24px; padding: 0px 9px; border-radius: 12px; font: 600 12px / 24px Sarabun, sans-serif; letter-spacing: 0px; box-shadow: none; }
.status-badge.pending { background: var(--amberbg); color: var(--amber); }
.new-badge { left: 8px; top: 8px; right: auto; height: 24px; padding: 0px 9px; border-radius: 12px; background: var(--coral); color: rgb(255, 255, 255); font: 600 12px / 24px Sarabun, sans-serif; }
.card .fav-btn { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; z-index: 3; display: grid; place-items: center; padding: 0px; border: 0px; background: transparent; }
.card .fav-btn svg { width: 18px; height: 18px; box-sizing: content-box; padding: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.94); box-shadow: rgba(43, 34, 56, 0.12) 0px 1px 3px; stroke: var(--ink2); fill: none; }
.photo-badge { background: rgba(43, 34, 56, 0.66); color: rgb(255, 255, 255); height: 22px; padding: 0px 8px; border-radius: 11px; font: 400 11.5px Sarabun, sans-serif; display: inline-flex; align-items: center; gap: 4px; }
.photo-badge svg { width: 12px; height: 12px; }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; }
.card-title { font: 600 14.5px / 1.3 Sarabun, sans-serif; color: var(--ink); min-height: 0px; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price-row { display: flex; align-items: center; justify-content: space-between; padding-top: 2px; min-height: 30px; }
.card-price { font: 500 18px Mitr, Sarabun, sans-serif; color: var(--ink); }
.card-price .was { font: 400 13px Sarabun, sans-serif; color: var(--ink3); text-decoration: line-through; margin-right: 4px; }
.card-price .now-promo { color: var(--coral); }
.card-meta { min-height: 36px; }
.card .card-title { min-height: 38px; color: var(--ink) !important; font-weight: 600 !important; }
.grid .card { display: flex !important; flex-direction: column; }
.grid .card-body { flex: 1 1 0%; flex-direction: column; display: flex !important; gap: 2px !important; padding: 10px 12px 12px !important; }
.grid .card .card-title { min-height: 0px !important; margin: 0px !important; }
.grid .card-meta { font-size: 12.5px; line-height: 1.45; min-height: 0px !important; margin: 2px 0px 0px !important; }
.grid .card-price-row { margin-top: auto !important; padding-top: 6px !important; min-height: 0px !important; }
.site-footer, .site-footer a { color: var(--ink2) !important; }
.site-footer > div:last-child, .site-footer [style*="B5A8C2"] { color: rgb(110, 100, 128) !important; }
@media (min-width: 900px){.site-footer { margin-left: max(24px, -660px + 50vw) !important; margin-right: max(24px, -660px + 50vw) !important; }}
.photo-badge, .status-badge, .cm-l, .site-footer small { font-size: 12px !important; }
.card { -webkit-tap-highlight-color: transparent; }
.card { border-radius: var(--r); }
.card { box-shadow: var(--sh-rest); }
@media (hover: hover) and (pointer: fine){.card:hover { transform: translateY(-2px); box-shadow: var(--sh-lift); }}
.fav-btn:active { transform: scale(0.92); }
.card:active { transform: scale(0.985); }
@media (prefers-reduced-motion: reduce){.card:hover { transform: none; }}
.grid .card { position: relative; content-visibility: auto; contain-intrinsic-size: auto 340px; }
.grid .card .fav-btn { z-index: 3; }
.site-footer.bloom { text-align: left; padding: 24px 16px calc(28px + var(--safe-b)); max-width: 1100px; margin-left: auto; margin-right: auto; }
.ft-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ft-brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.ft-brand b { display: block; font: 500 18px Mitr, Sarabun, sans-serif; color: var(--ink); }
.ft-brand small { font-size: 13.5px; color: var(--ink2); }
.ft-trust { list-style: none; margin: 0px 0px 12px; padding: 0px; display: grid; gap: 8px; }
.ft-trust li { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; font-size: 14px; color: var(--ink); }
.ft-trust li i { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--lilac); color: var(--plum); display: grid; place-items: center; }
.ft-trust li i svg { width: 16px; height: 16px; }
.ft-grp { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; overflow: hidden; }
.ft-grp summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0px 14px; font: 500 16px Mitr, Sarabun, sans-serif; color: var(--ink); cursor: pointer; }
.ft-grp summary::-webkit-details-marker { display: none; }
.ft-grp summary svg { width: 18px; height: 18px; color: var(--ink3); transition: transform 0.15s; }
.ft-grp[open] summary svg { transform: rotate(180deg); }
.ft-grp a, .ft-grp button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0px 14px; border-right: 0px; border-bottom: 0px; border-left: 0px; border-image: none; border-top: 1px solid var(--line); background: none; font: 400 15px Sarabun, sans-serif; text-align: left; cursor: pointer; color: var(--ink) !important; text-decoration: none !important; }
.ft-grp a svg.ic, .ft-grp button svg.ic { width: 20px; height: 20px; color: var(--plum); flex: 0 0 auto; }
.ft-grp a span, .ft-grp button span { flex: 1 1 0%; }
.ft-grp a .chev, .ft-grp button .chev { width: 16px; height: 16px; color: var(--ink3); }
.ft-copy { text-align: center; font-size: 12.5px; color: var(--ink3); margin-top: 16px; }
@media (hover: hover){.ft-grp a:hover, .ft-grp button:hover { background: var(--lilac); }}
@media (min-width: 900px){.site-footer.bloom { padding: 28px 24px 36px; }}
@media (min-width: 900px){.ft-trust { grid-template-columns: repeat(3, 1fr); }}
@media (min-width: 900px){.ft-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; align-items: start; }}
@media (min-width: 900px){.ft-grp summary { pointer-events: none; }}
@media (min-width: 900px){.ft-grp summary svg { display: none; }}
