/* =========================================================
   PTK AMULET SYSTEM
========================================================= */

/* =========================================================
   1) BASE LAYOUT / WRAPPERS
========================================================= */
.ptk-archive-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ptk-amulet-form-wrap,
.ptk-amulet-archive-wrap,
.ptk-my-amulets-wrap {
    margin: 20px 0;
}

.ptk-amulet-single {
    margin: 20px 0;
}

.ptk-amulet-single-wrap {
    margin: 24px 0;
}

/* =========================================================
   2) FORM FIELDS
========================================================= */
.ptk-field {
    margin-bottom: 18px;
}

.ptk-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.ptk-field input[type="text"],
.ptk-field input[type="number"],
.ptk-field input[type="file"],
.ptk-field textarea,
.ptk-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #dcdcdc;
    border-radius: 14px;
    background: #fff;
    color: #111;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.ptk-field textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.7;
}

.ptk-field input[type="text"]:focus,
.ptk-field input[type="number"]:focus,
.ptk-field textarea:focus,
.ptk-field select:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

.ptk-field input[type="file"] {
    padding: 12px;
    background: #fafafa;
    cursor: pointer;
}

.ptk-grid-2 {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
}

.ptk-help {
    margin: 8px 0 0;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* =========================================================
   3) GLOBAL GRID / CARD
========================================================= */
.ptk-amulet-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
}

.ptk-amulet-card {
    position: relative;
    border: 1px solid #2328;
    border-radius: 16px;
    overflow: hidden;
    background: #111;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ptk-amulet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
    border-color: #e6c76b;
}

.ptk-amulet-thumb {
    display: block;
    aspect-ratio: 1 / 1;
    background: #0f0f0f;
    overflow: hidden;
}

.ptk-amulet-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.ptk-amulet-card:hover .ptk-amulet-thumb img {
    transform: scale(1.06);
}

.ptk-no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 220px;
    background: #1a1a1a;
    color: #bbb;
    font-size: 13px;
}

.ptk-amulet-body {
    padding: 12px;
    background: #111;
    color: #fff;
}

.ptk-amulet-title {
    margin: 0 0 8px;
    font-weight: 600;
    color: #fff;
}

.ptk-amulet-title a {
    color: #fff;
    text-decoration: none;
}

.ptk-amulet-title a:hover {
    color: #f5d061;
}

.ptk-amulet-owner {
    margin-bottom: 6px;
    font-size: 13px;
    color: #aaa;
}

.ptk-amulet-owner a {
    color: #fff;
    text-decoration: none;
}

.ptk-amulet-owner a:hover {
    color: #f5d061;
}

.ptk-amulet-price {
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 800;
    color: #f5d061;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2a2110, #1a1408);
    border: 0;
}

.ptk-amulet-price del {
    color: rgba(255,255,255,0.5);
    margin-right: 6px;
    font-weight: 400;
}

.ptk-amulet-status {
    margin-bottom: 6px;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #1f1f1f;
    border: 1px solid #333;
    color: #eaeaea;
}

.ptk-amulet-title:last-child,
.ptk-amulet-owner:last-child,
.ptk-amulet-price:last-child,
.ptk-amulet-status:last-child {
    margin-bottom: 0;
}

/* =========================================================
   4) PROFILE TAB CARD
========================================================= */
.ptk-profile .ptk-amulet-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.ptk-profile .ptk-amulet-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 14px;
    color: #fff;
}

.ptk-profile .ptk-amulet-thumb {
    background: #0f0f0f;
}

.ptk-profile .ptk-amulet-thumb img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.ptk-profile .ptk-no-thumb {
    background: #1a1a1a;
    color: #bbb;
    font-size: 13px;
}

.ptk-profile .ptk-amulet-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ptk-profile .ptk-amulet-title {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
}

.ptk-profile .ptk-amulet-title a {
    color: #fff !important;
}

.ptk-profile .ptk-amulet-title a:hover {
    color: #f5d061 !important;
}

.ptk-profile .ptk-amulet-owner {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #aaa;
    margin-bottom: 0;
}

.ptk-profile .ptk-amulet-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 2px 0 6px;
}

.ptk-profile .ptk-amulet-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #222;
    color: #ddd !important;
    font-size: 12px;
    line-height: 1.2;
    text-decoration: none !important;
    border: 1px solid #2e2e2e;
}

.ptk-profile .ptk-amulet-cat-badge:hover {
    background: #2d2d2d;
    color: #fff !important;
}

.ptk-profile .ptk-amulet-cat-badge .ptk-count {
    opacity: .75;
}

.ptk-profile .ptk-amulet-price {
    margin-top: 4px;
    margin-bottom: 0;
    font-size: 20px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #5a4715;
    letter-spacing: .3px;
}

.ptk-profile .ptk-amulet-price del {
    font-size: 13px;
    color: rgba(255,255,255,.5);
    margin-right: 6px;
    font-weight: 400;
}

.ptk-profile .ptk-amulet-status {
    display: inline-block;
    margin-top: 6px;
    margin-bottom: 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #1f1f1f;
    border: 1px solid #333;
    color: #eaeaea;
}

.ptk-profile .ptk-amulet-status.is-sold {
    background: #3a0d0d;
    border-color: #7a1f1f;
    color: #ffb3b3;
}

.ptk-profile .ptk-amulet-status.is-available {
    background: #0f2a1a;
    border-color: #1f5a3a;
    color: #8ef5b0;
}

.ptk-profile .ptk-amulet-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ptk-profile .ptk-amulet-card-actions .ptk-btn,
.ptk-profile .ptk-amulet-card-actions button.ptk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 8px;
    text-decoration: none;
}

.ptk-profile .ptk-inline-form {
    margin: 0;
}

/* =========================================================
   5) PROFILE ONLY GRID FOR FAVORITES / FOLLOWING
========================================================= */
.ptk-profile-panel .ptk-amulet-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ptk-profile-panel .ptk-profile-following-grid,
.ptk-profile-panel .ptk-following-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ptk-profile-panel .ptk-amulet-grid.ptk-following-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ptk-profile-panel .ptk-amulet-grid > .ptk-amulet-card,
.ptk-profile-panel .ptk-amulet-grid > article.ptk-amulet-card,
.ptk-profile-panel .ptk-profile-following-grid > .ptk-amulet-card,
.ptk-profile-panel .ptk-following-grid > .ptk-amulet-card {
    min-width: 0;
}

/* =========================================================
   6) CATEGORY CHIPS / NOTICE / PLACEHOLDER
========================================================= */
.ptk-amulet-cat-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.ptk-cat-chip {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: #0f0f0f;
    color: #fff;
    border: 1px solid #2a2a2a;
    text-decoration: none;
}

.ptk-cat-chip.active {
    font-weight: 700;
}

.ptk-cat-chip:hover {
    background: #1a1a1a;
    color: #f5d061;
    border-color: #5a4715;
}

.ptk-amulet-notice {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.6;
}

.ptk-amulet-notice.success {
    background: #edf8f0;
    border: 1px solid #cfe8d5;
    color: #1f5e31;
}

.ptk-amulet-notice.error {
    background: #fff1f1;
    border: 1px solid #f0d1d1;
    color: #8a2d2d;
}

.ptk-amulet-notice.info {
    background: #1f2937;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
}

.ptk-amulet-notice.info a,
.ptk-amulet-notice.info strong,
.ptk-amulet-notice.info p,
.ptk-amulet-notice.info span,
.ptk-amulet-notice.info div {
    color: inherit;
}

.ptk-amulet-media-placeholder {
    padding: 14px;
    border: 1px dashed #ccc;
    border-radius: 12px;
    margin-bottom: 16px;
}

/* =========================================================
   7) GLOBAL AMULET META
========================================================= */
.ptk-amulet-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.ptk-amulet-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f3f3;
    font-size: 12px;
    line-height: 1.2;
    border: 1px solid #e7e7e7;
    color: inherit;
    text-decoration: none;
}

.ptk-amulet-cat-badge .ptk-count {
    opacity: .7;
}

/* =========================================================
   8) LEGACY GALLERY SUPPORT
========================================================= */
.ptk-amulet-main-image img {
    width: 100%;
    border-radius: 12px;
}

.ptk-amulet-gallery {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.ptk-amulet-gallery img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.ptk-amulet-info {
    margin-top: 10px;
}

/* =========================================================
   9) IMAGE PREVIEW / UPLOAD MANAGER
========================================================= */
#ptk_amulet_preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.ptk-img-item {
    width: 140px;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 8px;
    background: #fff;
}

.ptk-img-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.ptk-img-item.is-featured {
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, .25);
}

.ptk-img-meta {
    margin-top: 6px;
    font-size: 12px;
    opacity: .8;
}

.ptk-img-controls {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.ptk-img-btn {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f7f7f7;
    cursor: pointer;
    font-size: 12px;
}

.ptk-img-btn:hover {
    opacity: .9;
}

/* =========================================================
   10) SINGLE AMULET LAYOUT
========================================================= */
.ptk-amulet-single-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 28px;
    align-items: start;
}

.ptk-amulet-gallery-panel,
.ptk-amulet-info-panel,
.ptk-amulet-single-description {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,.04);
    transition: .2s ease;
}

.ptk-amulet-gallery-panel:hover,
.ptk-amulet-info-panel:hover {
    box-shadow: 0 10px 26px rgba(0,0,0,.06);
}

.ptk-amulet-main-stage {
    position: relative;
}

.ptk-amulet-main-image-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.ptk-amulet-main-image-btn img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    background: #f7f7f7;
    transition: transform .3s ease;
}

.ptk-amulet-main-image-btn:hover img {
    transform: scale(1.03);
}

.ptk-amulet-main-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    background: #f7f7f7;
    border-radius: 16px;
    color: #666;
}

.ptk-amulet-thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.ptk-amulet-thumb-btn {
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: .2s ease;
}

.ptk-amulet-thumb-btn img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.ptk-amulet-thumb-btn.is-active {
    border-color: #111;
    box-shadow: 0 0 0 2px rgba(0,0,0,.08);
}

.ptk-amulet-thumb-btn:hover {
    transform: scale(1.04);
}

/* =========================================================
   11) SINGLE TYPOGRAPHY / META
========================================================= */
.ptk-amulet-single-title {
    margin: 0 0 14px;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.3px;
    color: #111;
}

.ptk-amulet-single-price {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    padding: 10px 14px;
    border: 1px solid #f0d98a;
    border-radius: 12px;
    background: #fff4cc;
    color: #7a4f00;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
}

.ptk-amulet-single-price del {
    color: #8a8a8a;
    opacity: 0.9;
    margin-right: 2px;
    font-size: 16px;
    font-weight: 500;
}

.ptk-amulet-single-price ins {
    color: #7a4f00;
    text-decoration: none;
}

.ptk-amulet-single-status,
.ptk-amulet-single-owner,
.ptk-amulet-single-cats {
    margin-bottom: 12px;
    font-size: 15px;
    color: #222;
}

.ptk-amulet-single-status {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f2f2f2;
}

.ptk-label {
    font-weight: 700;
    margin-right: 6px;
    color: #111;
}

.ptk-amulet-single-owner {
    padding: 6px 10px;
    display: inline-block;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
}

.ptk-amulet-single-owner a {
    color: #111;
    text-decoration: none;
    font-weight: 600;
}

.ptk-amulet-single-owner a:hover {
    color: #c9a23a;
}

.ptk-amulet-single-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.ptk-amulet-single-actions .ptk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    transition: .2s;
}

.ptk-amulet-single-actions .ptk-btn:hover {
    transform: translateY(-1px);
}

.ptk-amulet-single-description {
    margin-top: 24px;
}

.ptk-amulet-description-content {
    line-height: 1.8;
    color: #222;
}

.ptk-amulet-description-content p {
    margin-bottom: 14px;
}

/* =========================================================
   12) FOLLOW UI
========================================================= */
.ptk-amulet-follow-wrap {
    display: inline-flex;
    align-items: center;
}

.ptk-amulet-follow-wrap .ptk-amulet-follow-form {
    margin: 0;
}

.ptk-amulet-follow-wrap .ptk-btn {
    white-space: nowrap;
}

.ptk-amulet-follow-self {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* seller page follow */
.ptk-amulet-shop__owner-actions > .ptk-amulet-follow-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ptk-amulet-shop__owner-actions > .ptk-amulet-follow-wrap .ptk-btn,
.ptk-amulet-shop__owner-actions > .ptk-amulet-follow-wrap button,
.ptk-amulet-shop__owner-actions > .ptk-amulet-follow-wrap .ptk-amulet-follow-self {
    min-height: 40px;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 10px;
}

.ptk-amulet-shop__owner-actions > .ptk-amulet-follow-wrap .ptk-amulet-follow-count {
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    color: #ddd;
    border: 1px solid #383838;
    font-size: 12px;
    font-weight: 700;
}

/* single page follow */
.ptk-amulet-single-wrap .ptk-amulet-follow-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: #f6f6f3;
    border: 1px solid #e3e3dd;
    border-radius: 999px;
}

.ptk-amulet-single-wrap .ptk-amulet-follow-wrap .ptk-btn,
.ptk-amulet-single-wrap .ptk-amulet-follow-wrap button,
.ptk-amulet-single-wrap .ptk-amulet-follow-self {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    flex: 0 0 auto;
    min-height: 30px;
    height: auto;
    margin: 0;
    padding: 4px 9px;
    font-size: 11px;
    line-height: 1;
    border-radius: 999px;
    box-shadow: none;
}

.ptk-amulet-single-wrap .ptk-amulet-follow-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 3px 7px;
    font-size: 10px;
    line-height: 1;
    background: #ebe7dd;
    color: #4b4b4b;
    border-radius: 999px;
    border: 1px solid #ddd6c4;
}

/* =========================================================
   13) SHOP / SELLER PAGE
========================================================= */
.ptk-amulet-shop {
    margin: 20px 0;
}

.ptk-amulet-shop__header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px;
    background: #111;
    border: 1px solid #222;
    border-radius: 16px;
}

.ptk-amulet-shop__header-top {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    align-items: center;
}

.ptk-amulet-shop__header-bottom {
    margin-top: 16px;
}

.ptk-amulet-shop__header-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ptk-amulet-shop__avatar img {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    object-fit: cover;
}

.ptk-amulet-shop__avatar-img,
.ptk-amulet-shop__header-media img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.ptk-amulet-shop__owner {
    min-width: 0;
}

.ptk-amulet-shop__owner-name {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.ptk-amulet-shop__owner-meta {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 8px;
}

.ptk-amulet-owner-badges {
    margin: 6px;
}

.ptk-amulet-shop__owner-badge,
.ptk-amulet-shop__directory-badge {
    margin-top: 6px;
}

.ptk-amulet-shop__member-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.ptk-amulet-shop__member-badge--verified {
    background: #0f2a1a;
    color: #8ef5b0;
    border: 1px solid #1f5a3a;
}

.ptk-amulet-shop__member-badge--general {
    background: #2a2a2a;
    color: #ddd;
    border: 1px solid #383838;
}

.ptk-amulet-shop__owner-intro,
.ptk-amulet-shop__directory-intro {
    margin-top: 8px;
    color: #d1d5db;
    line-height: 1.6;
}

.ptk-amulet-shop__directory-intro {
    font-size: 14px;
}

.ptk-amulet-shop__owner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* ใช้ระบบปุ่มกลาง ไม่ย้อมใหม่จนชนราคา/VIP */
.ptk-amulet-shop__owner-actions > .ptk-btn,
.ptk-amulet-shop__owner-actions > a.ptk-btn,
.ptk-amulet-shop__owner-actions > button.ptk-btn {
    min-height: 40px;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 10px;
}

.ptk-amulet-shop__contact-box {
    padding: 12px 14px;
    border-radius: 12px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.08);
}

.ptk-amulet-shop__contact-item + .ptk-amulet-shop__contact-item {
    margin-top: 8px;
}

.ptk-amulet-shop__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.ptk-amulet-shop__card {
    position: relative;
}

.ptk-amulet-shop__card--vip {
    border: 1px solid #ffd86b;
    box-shadow: 0 0 10px rgba(255,216,107,0.35);
}

.ptk-amulet-shop__card--vip:hover {
    box-shadow: 0 0 18px rgba(255,216,107,0.55);
    transform: translateY(-2px);
}

.ptk-amulet-shop__card--vip::before {
    content: "VIP";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ffd86b;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 6px;
}

.ptk-amulet-shop__thumb-link {
    display: block;
    position: relative;
}

.ptk-amulet-shop__image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.ptk-amulet-shop__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 260px;
    background: #1a1a1a;
    color: #888;
}

.ptk-amulet-shop__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.ptk-amulet-shop__content {
    padding: 12px;
    background: #111;
    color: #fff;
}

.ptk-amulet-shop__title {
    font-size: 15px;
    margin: 0 0 6px;
}

.ptk-amulet-shop__title a {
    color: #fff;
    text-decoration: none;
}

.ptk-amulet-shop__title a:hover {
    color: #f5d061;
}

.ptk-amulet-shop__price {
    margin-bottom: 6px;
}

.ptk-amulet-shop__meta {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 6px;
}

.ptk-amulet-shop__actions {
    margin-top: 10px;
}

.ptk-amulet-shop__view-btn {
    width: 100%;
}

.ptk-amulet-shop__pagination {
    margin-top: 20px;
}

.ptk-amulet-shop__pagination ul {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 0;
    list-style: none;
}

.ptk-amulet-shop__pagination a,
.ptk-amulet-shop__pagination span {
    padding: 6px 10px;
    border-radius: 6px;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
}

.ptk-amulet-shop__empty {
    padding: 20px;
    text-align: center;
    color: #aaa;
}

/* =========================================================
   14) ACTION BUTTONS / BACK
========================================================= */
.ptk-amulet-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ptk-amulet-card-actions .ptk-btn {
    padding: 8px 12px;
    font-size: 14px;
}

/* ปุ่มในการ์ดใช้โทนกลาง ไม่ชนกับราคา/ป้าย */
.ptk-amulet-card-actions .ptk-btn:not(.ptk-btn-primary):not(.ptk-btn-danger) {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
}

.ptk-amulet-card-actions .ptk-btn:not(.ptk-btn-primary):not(.ptk-btn-danger):hover {
    background: #222;
    border-color: #c49a3d;
    color: #fff;
}

.ptk-amulet-back-nav {
    margin-bottom: 14px;
}

.ptk-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #2d2d2d;
    transition: .2s ease;
}

.ptk-back-btn:hover {
    background: #1a1a1a;
    border-color: #c49a3d;
    transform: translateY(-1px);
}

/* =========================================================
   15) RELATED SECTION
========================================================= */
.ptk-related-wrap {
    margin-top: 40px;
    background: #111;
    border: 1px solid #222;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.ptk-related-wrap h3 {
    margin-bottom: 14px;
    font-size: 20px;
}

.ptk-amulet-single-wrap .ptk-rel-title {
    display: inline-block;
    padding: 6px 8px;
    background: #f9f8f9;
    border-radius: 999px;
    color: #111;
}

.ptk-rel-slider {
    position: relative;
    padding: 0 44px;
}

.ptk-rel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 10px;
}

.ptk-rel-track::-webkit-scrollbar {
    display: none;
}

.ptk-rel-item {
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: 220px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: .2s;
}

.ptk-rel-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0,0,0,.08);
}

.ptk-rel-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.ptk-rel-item div {
    padding: 10px;
    font-size: 14px;
}

.ptk-rel-prev,
.ptk-rel-next {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    border: 0;
    background: #000;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    cursor: pointer;
    z-index: 2;
}

.ptk-rel-prev { left: 0; }
.ptk-rel-next { right: 0; }

/* =========================================================
   16) LIGHTBOX
========================================================= */
.ptk-amulet-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 99999;
}

.ptk-amulet-lightbox.is-open {
    display: block;
}

.ptk-amulet-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.82);
}

.ptk-amulet-lightbox-dialog {
    position: relative;
    z-index: 2;
    width: min(92vw, 1100px);
    height: min(88vh, 900px);
    margin: 4vh auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ptk-lightbox-image-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    touch-action: none;
}

#ptk_amulet_lightbox_image {
    max-width: 100%;
    max-height: 100%;
	border-radius: 10px;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform .2s ease;
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
}

#ptk_amulet_lightbox_image.is-zoomed {
    transform: scale(1.8);
    cursor: grab;
}

#ptk_amulet_lightbox_image.is-zoomed:active {
    cursor: grabbing;
}

#ptk_amulet_lightbox_image.is-animating {
    transition: transform .22s ease;
}

body.ptk-lightbox-open {
    overflow: hidden;
}

.ptk-lightbox-close,
.ptk-lightbox-nav {
    position: absolute;
    z-index: 3;
    border: 0;
    background: rgba(255,255,255,.12);
    color: #fff;
    cursor: pointer;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.ptk-lightbox-close {
    top: 12px;
    right: 12px;
    width: 46px;
    height: 46px;
    font-size: 28px;
    line-height: 1;
}

.ptk-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 34px;
    line-height: 1;
}

.ptk-lightbox-nav.prev { left: 12px; }
.ptk-lightbox-nav.next { right: 12px; }

/* zoom controls */
.ptk-lightbox-zoom-controls {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ptk-lightbox-zoom-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(4px);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.ptk-lightbox-zoom-btn:hover {
    background: rgba(255,255,255,.18);
}

.ptk-lightbox-zoom-btn.is-indicator {
    cursor: default;
    min-width: 58px;
}

.ptk-lightbox-zoom-btn.is-reset {
    min-width: 72px;
    font-size: 13px;
}

/* magnifier */
.ptk-zoom-container {
    position: relative;
}

.ptk-magnifier-lens {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    pointer-events: none;
    display: none;
    z-index: 12;
    background-repeat: no-repeat;
    border: 2px solid rgba(255,255,255,.92);
    box-shadow: 0 10px 30px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.08);
    backdrop-filter: blur(1px);
}

.ptk-magnifier-lens.is-active {
    display: block;
}

/* =========================================================
   17) CATEGORY BLOCK / LIST
========================================================= */
.ptk-amulet-category-block {
    margin: 20px 0;
}

.ptk-amulet-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ptk-amulet-category-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.ptk-amulet-category-viewall {
    font-size: 13px;
    padding: 6px 10px;
}

.ptk-amulet-category-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 12px;
}

.ptk-amulet-category-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.ptk-amulet-category-slider .ptk-amulet-category-item {
    min-width: 160px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.ptk-amulet-category-slider::-webkit-scrollbar {
    height: 6px;
}

.ptk-amulet-category-slider::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}

.ptk-amulet-category-item .ptk-amulet-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.ptk-amulet-category-item .ptk-amulet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
}

.ptk-amulet-category-list {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
}

.ptk-amulet-category-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease;
}

.ptk-amulet-category-card:hover {
    transform: translateY(-3px);
}

.ptk-amulet-category-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #222;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.ptk-amulet-category-image::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0));
    pointer-events: none;
}

.ptk-amulet-category-thumb {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
}

.ptk-amulet-category-card:hover .ptk-amulet-category-thumb {
    transform: scale(1.04);
}

.ptk-amulet-category-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 12px;
    color: #aaa;
    background: #1a1a1a;
}

.ptk-amulet-category-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 40px;
    z-index: 2;
    text-align: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 6px rgba(0,0,0,.8);
    padding: 0 8px;
}

.ptk-amulet-category-count {
    position: absolute;
    left: 50%;
    bottom: 6px;
    z-index: 2;
    transform: translateX(-50%);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* =========================================================
   18) RESPONSIVE
========================================================= */
@media (min-width: 768px) {
    .ptk-amulet-category-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (min-width: 1024px) {
    .ptk-amulet-category-grid {
        grid-template-columns: repeat(4,1fr);
    }

    .ptk-amulet-category-list {
        grid-template-columns: repeat(5,1fr);
    }
}

@media (min-width: 1400px) {
    .ptk-amulet-category-list {
        grid-template-columns: repeat(6,1fr);
    }
}

@media (max-width: 1024px) {
    .ptk-profile-panel .ptk-amulet-grid,
    .ptk-profile-panel .ptk-profile-following-grid,
    .ptk-profile-panel .ptk-following-grid,
    .ptk-profile-panel .ptk-amulet-grid.ptk-following-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 980px) {
    .ptk-amulet-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .ptk-amulet-single-grid {
        grid-template-columns: 1fr;
    }

    .ptk-amulet-thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ptk-amulet-single-title {
        font-size: 24px;
    }

    .ptk-amulet-single-price {
        font-size: 22px;
    }

    .ptk-rel-item {
        flex: 0 0 calc((100% - 16px) / 2);
    }
}

@media (max-width: 767px) {
    .ptk-amulet-shop__header {
        display: block !important;
    }

    .ptk-amulet-shop__header-top {
        display: grid !important;
        grid-template-columns: 84px minmax(0, 1fr) !important;
        gap: 12px !important;
        align-items: start !important;
    }

    .ptk-amulet-shop__header-media {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
        width: 84px !important;
    }

    .ptk-amulet-shop__avatar-img,
    .ptk-amulet-shop__header-media img,
    .ptk-avatar-fallback {
        width: 84px !important;
        height: 84px !important;
        min-width: 84px !important;
        max-width: 84px !important;
        object-fit: cover !important;
        display: block !important;
    }

    .ptk-amulet-shop__owner {
        min-width: 0 !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .ptk-amulet-shop__owner-name {
        display: block !important;
        margin: 0 0 8px !important;
        font-size: 18px !important;
        line-height: 1.2 !important;
        word-break: break-word !important;
    }

    .ptk-amulet-shop__owner-meta {
        display: block !important;
        margin: 0 0 4px !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    .ptk-amulet-shop__header-bottom {
        display: block !important;
        width: 100% !important;
        margin-top: 14px !important;
        clear: both !important;
    }

    .ptk-amulet-shop__owner-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        width: 100% !important;
        margin-top: 0 !important;
        align-items: stretch !important;
    }

    .ptk-amulet-shop__owner-actions > a,
    .ptk-amulet-shop__owner-actions > button,
    .ptk-amulet-shop__owner-actions > .ptk-amulet-follow-wrap {
        width: 100% !important;
        min-width: 0 !important;
    }

    .ptk-amulet-shop__owner-actions > .ptk-amulet-follow-wrap {
        display: block !important;
    }

    .ptk-amulet-shop__owner-actions > .ptk-amulet-follow-wrap .ptk-amulet-follow-form {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .ptk-amulet-shop__owner-actions > .ptk-amulet-follow-wrap .ptk-btn,
    .ptk-amulet-shop__owner-actions > .ptk-amulet-follow-wrap .ptk-amulet-follow-self {
        width: 100% !important;
        min-height: 46px !important;
        padding: 10px 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: normal !important;
        line-height: 1.2 !important;
        box-sizing: border-box !important;
    }

    .ptk-amulet-shop__contact-box {
        margin-top: 12px !important;
    }
}

@media (max-width: 680px) {
    .ptk-profile-panel .ptk-amulet-grid,
    .ptk-profile-panel .ptk-profile-following-grid,
    .ptk-profile-panel .ptk-following-grid,
    .ptk-profile-panel .ptk-amulet-grid.ptk-following-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (min-width: 560px) and (max-width: 680px) {
    .ptk-profile-panel .ptk-amulet-grid,
    .ptk-profile-panel .ptk-profile-following-grid,
    .ptk-profile-panel .ptk-following-grid,
    .ptk-profile-panel .ptk-amulet-grid.ptk-following-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ptk-grid-2,
    .ptk-amulet-grid {
        grid-template-columns: 1fr;
    }

    .ptk-profile .ptk-amulet-thumb img {
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        background: #0f0f0f;
    }

    .ptk-amulet-gallery-panel,
    .ptk-amulet-info-panel,
    .ptk-amulet-single-description {
        padding: 14px;
        border-radius: 14px;
    }

    .ptk-amulet-thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .ptk-lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 28px;
    }

    .ptk-lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .ptk-rel-slider {
        padding: 0 36px;
    }

    .ptk-rel-item {
        flex: 0 0 85%;
        min-width: 85%;
    }

    .ptk-lightbox-zoom-controls {
        top: 10px;
        left: 10px;
        right: 56px;
        gap: 6px;
    }

    .ptk-lightbox-zoom-btn {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 14px;
    }

    .ptk-lightbox-zoom-btn.is-indicator {
        min-width: 52px;
    }

    .ptk-lightbox-zoom-btn.is-reset {
        min-width: 64px;
        font-size: 12px;
    }
}

@media (hover:none), (pointer:coarse) {
    .ptk-magnifier-lens {
        display: none !important;
    }

    .ptk-amulet-main-image-btn {
        cursor: pointer;
    }
}


/* =========================================================
   COLOR BALANCE FIX (ไม่ให้ชนกัน)
========================================================= */

/* =========================
   1) ราคา = ทองหลัก
========================= */
.ptk-amulet-price {
  color: #f5d061;
  background: linear-gradient(135deg, #2a2110, #1a1408);
  border: 1px solid rgba(245,208,97,0.25);
}

/* =========================
   2) VIP = ทอง "สว่างกว่า"
========================= */
.ptk-amulet-shop__card--vip {
  border: 1px solid #ffd86b;
  box-shadow: 0 0 10px rgba(255,216,107,0.35);
}

.ptk-amulet-shop__card--vip::before {
  background: #ffd86b;
  color: #111;
}

/* =========================
   3) STATUS = แยกสีชัด
========================= */

/* พร้อมบูชา */
.ptk-amulet-status.is-available {
  background: #0f2a1a;
  border-color: #1f5a3a;
  color: #8ef5b0;
}

/* โทรถาม */
.ptk-amulet-status.is-call {
  background: #2a1a0f;
  border-color: #5a3a1f;
  color: #ffcc88;
}

/* แชท */
.ptk-amulet-status.is-line {
  background: #0f2a2a;
  border-color: #1f5a5a;
  color: #8ef5f5;
}

/* ขายแล้ว */
.ptk-amulet-status.is-sold {
  background: #3a0d0d;
  border-color: #7a1f1f;
  color: #ffb3b3;
}

/* =========================
   4) CATEGORY BADGE
========================= */
.ptk-amulet-cat-badge {
  background: #1c1c1c;
  border: 1px solid #2f2f2f;
  color: #bbb;
}

.ptk-amulet-cat-badge:hover {
  background: #2a2a2a;
  color: #fff;
}

/* =========================
   5) ปุ่ม = ยกขึ้นจากพื้น
========================= */
.ptk-amulet-card-actions .ptk-btn {
  background: #1a1a1a;
  border: 1px solid #333;
}

.ptk-amulet-card-actions .ptk-btn:hover {
  background: #222;
  border-color: #c49a3d;
}

/* =========================
   6) SHOP BADGE (overlay บนรูป)
========================= */
.ptk-amulet-shop__badge {
  background: rgba(0,0,0,0.6);
  color: #fff;
  backdrop-filter: blur(6px);
}

/* =========================
   7) OWNER BADGE
========================= */
.ptk-amulet-shop__member-badge--verified {
  background: #0f2a1a;
  color: #8ef5b0;
}

.ptk-amulet-shop__member-badge--general {
  background: #2a2a2a;
  color: #ddd;
}

/* =========================================================
   📌 CONTACT BUTTON - CLEAN BORDER STYLE
========================================================= */

/* กล่องรวม */
.ptk-amulet-shop__contact-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ปุ่ม */
.ptk-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 9px 14px;
  border-radius: 999px;

  font-size: 13px;
  font-weight: 600;

  color: #eee;
  text-decoration: none !important;

  background: transparent;
  border: 1px solid rgba(196,154,61,0.35);

  transition: all 0.2s ease;
}

/* hover */
.ptk-contact-icon:hover {
  background: rgba(196,154,61,0.12);
  border-color: rgba(196,154,61,0.7);
  color: #f5d061;

  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* active */
.ptk-contact-icon:active {
  transform: scale(0.97);
}

/* mobile */
@media (max-width: 640px) {
  .ptk-contact-icon {
    padding: 8px 12px;
    font-size: 12px;
  }
}

