/* Character Brands - buying guides. Reuses the category-page look (lilac #8775b5 / #ebe8f1). */

/* ---------- shared ---------- */
.g-h1 { font-family: 'Lato', sans-serif; font-size: 26px; font-weight: bold; color: #797979; margin: 10px 4px 18px; line-height: 1.2 }
.g-intro { font-size: 13px; line-height: 1.6; color: #333; margin: 0 4px 20px; max-width: 1000px }
.g-intro p { margin: 0 0 8px }
.g-intro a, .g-note a { color: #5b46a0; text-decoration: underline !important }
.g-btn { display: inline-block; padding: 11px 24px; background: #8775b5; color: #fff !important; font-family: 'Lato', sans-serif; font-weight: bold; font-size: 14px; border-radius: 4px; text-decoration: none !important }
.g-btn:hover { background: #6f5d9c }
.g-btn-alt { background: #f15d5b }
.g-btn-alt:hover { background: #d94846 }
.g-shopall { margin: 26px 4px 18px; clear: both }
.g-note { margin: 14px 4px 0; font-size: 13px; color: #666; clear: both }
.g-tips { margin-top: 24px }
.g-tips h2 { font-family: 'Lato', sans-serif; font-size: 18px; color: #8775b5; margin: 18px 0 8px }
.g-tips ul { margin: 0 0 12px 20px; padding: 0; line-height: 1.8 }

/* "More buying guides" cards */
.g-related { margin: 44px 4px 50px; clear: both }
.g-related h2 { font-family: 'Lato', sans-serif; font-size: 22px; color: #8775b5; margin: 0 0 18px; padding-bottom: 8px; border-bottom: 2px solid #ebe8f1 }
.g-rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px }
.g-rel-card { display: flex; align-items: center; gap: 14px; padding: 14px; background: #faf9fd; border: 1px solid #ebe8f1; border-radius: 12px; color: #333; text-decoration: none !important; transition: box-shadow .2s, transform .2s, border-color .2s }
.g-rel-card:hover { box-shadow: 0 8px 22px rgba(135, 117, 181, .25); transform: translateY(-3px); border-color: #cfc6e6 }
.g-rel-img { flex: 0 0 84px; height: 84px; display: flex; align-items: center; justify-content: center; padding: 6px; background: #fff; border: 1px solid #ebe8f1; border-radius: 10px }
.g-rel-img img { max-width: 100%; max-height: 100%; object-fit: contain }
.g-rel-card, .g-rel-body { text-align: left }
.g-rel-body { display: block; min-width: 0 }
.g-rel-title { display: block; font-family: 'Lato', sans-serif; font-weight: bold; font-size: 15px; line-height: 1.25; color: #5b46a0; margin-bottom: 4px }
.g-rel-blurb { display: block; font-size: 12.5px; line-height: 1.4; color: #666; margin-bottom: 8px }
.g-rel-cta { display: inline-block; font-size: 12.5px; font-weight: bold; color: #f15d5b }
.g-rel-card:hover .g-rel-cta { text-decoration: underline }
@media (max-width: 699px) {
  .g-related { margin: 34px 8px 44px }
  .g-related h2 { font-size: 19px }
  .g-rel-grid { grid-template-columns: 1fr; gap: 12px }
}
.g-empty { padding: 40px 10px; text-align: center; color: #8775b5; font-size: 15px; clear: both }
.g-dis { opacity: .35; pointer-events: none }

/* ---------- desktop guide page (looks like a category page) ---------- */
.gp-d { width: 1030px; position: relative; margin: 0 0 8px }
.gp-d #filterdiv { margin: 0; padding: 0 0 18px; width: 220px; float: left; background-color: #ebe8f1 }
.gp-d #filterdiv label { cursor: pointer; color: #8775b5; font-size: 13px }
.gp-d #filterdiv .table1 td { padding: 2px 3px; vertical-align: middle }
.gp-d .gp-main { margin-left: 240px; width: 790px }
.gp-bar { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 7px 14px 4px 20px; min-height: 46px; color: #333 }
.gp-bar select { background: #ebe8f1; border: 0; border-radius: 3px; padding: 5px 6px; font-size: 14px; color: #333 }
.gp-bar-b { margin-top: 8px }
.gp-pager a { display: inline-block; width: 26px; height: 26px; line-height: 26px; text-align: center; background: #8775b5; color: #fff; border-radius: 4px; text-decoration: none; font-size: 11px; vertical-align: middle }
.gp-pager .g-pageinfo { margin: 0 6px }
.gp-grid { display: grid; grid-template-columns: repeat(3, 250px); gap: 12px 8px; justify-content: center; margin-top: 8px }
.gp-grid .gitem { text-align: center }
.gp-grid .productwrap img { max-width: 100% }
.gp-price { font-size: 18px; color: #999; font-weight: bold; font-family: 'Lato', sans-serif }

/* ---------- guide index (both) ---------- */
.gi-h2 { font-family: 'Lato', sans-serif; font-size: 22px; color: #8775b5; margin: 28px 4px 14px; padding-bottom: 6px; border-bottom: 2px solid #ebe8f1; clear: both }
.gi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 4px 10px }
.gi-card { display: block; background: #fff; border: 1px solid #ebe8f1; border-radius: 6px; overflow: hidden; color: #333; text-decoration: none; transition: box-shadow .2s, transform .2s }
.gi-card:hover { box-shadow: 0 6px 18px rgba(135, 117, 181, .28); transform: translateY(-3px) }
.gi-img { display: flex; align-items: center; justify-content: center; height: 210px; background: #f7f6f8; padding: 14px }
.gi-img img { max-width: 100%; max-height: 100%; object-fit: contain }
.gi-body { display: block; padding: 14px 16px 18px; text-align: left }
.gi-title { display: block; font-family: 'Lato', sans-serif; font-weight: bold; color: #8775b5; font-size: 17px; line-height: 1.25; margin-bottom: 6px }
.gi-blurb { display: block; font-size: 13px; color: #555; line-height: 1.45; min-height: 38px }
.gi-meta { display: block; font-size: 12px; color: #999; margin: 8px 0 12px }
.gi-btn { display: inline-block; background: #8775b5; color: #fff; padding: 8px 16px; border-radius: 3px; font-size: 13px; font-weight: bold }
.gi-card:hover .gi-btn { background: #6f5d9c }
.gi-shopall { margin: 30px 4px 40px; text-align: center }
.gi-shopall .g-btn { margin: 4px 6px }

/* ---------- mobile ---------- */
.g-h1m { font-family: 'Lato', sans-serif; font-size: 22px; font-weight: bold; color: #8775b5; text-align: center; margin: 14px 8px 14px; line-height: 1.2 }
.g-intro-m { font-size: 14px; line-height: 1.55; margin: 0 12px 16px; text-align: left }
.gp-m .gp-bar-m { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; border-bottom: 1px solid #8775b5; background: rgba(255, 255, 255, .9) }
.gp-m .gp-bar-m select { padding: 8px 6px; font-size: 14px; border: 1px solid #999; border-radius: 3px; background: #fff; max-width: 150px }
.gp-m .gp-count { font-size: 14px; color: #666 }
.gp-btn { display: inline-block; background: #8775b5; color: #fff !important; font-weight: bold; font-size: 14px; padding: 10px 18px; border-radius: 3px; text-decoration: none !important; font-family: arial, sans-serif }
.gp-m .gp-list a.gitem { display: block; color: inherit; text-decoration: none }
.gp-m .g-more-wrap { text-align: center; padding: 18px 0 8px }
.gp-m .g-panel-m { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #fff; z-index: 2147483647; overflow-y: auto; -webkit-overflow-scrolling: touch }
.gp-m .g-panel-head { background: #8775b5; color: #fff; padding: 12px 14px; font-weight: bold; font-size: 16px; position: sticky; top: 0; z-index: 2 }
.gp-m .g-panel-head a { float: right; color: #fff; font-weight: normal; font-size: 14px }
.gp-m .g-panel-m .title-open, .gp-m .g-panel-m .title-closed { text-align: left; padding: 14px 12px; font-size: 16px; font-weight: bold; color: #000; border-bottom: 1px solid #8775b5; background-repeat: no-repeat; background-position: 96% 50%; background-size: 20px 20px; cursor: pointer }
.gp-m .g-panel-m .title-open { background-image: url('/images/cat_pages/Arrow_Open.png') }
.gp-m .g-panel-m .title-closed { background-image: url('/images/cat_pages/Arrow_Closed.png') }
.gp-m .g-panel-m .menu-open { display: block; padding: 8px 14px 12px }
.gp-m .g-panel-m .menu-closed { display: none }
.gp-m .g-panel-m .table1 td { padding: 7px 4px; font-size: 16px; vertical-align: middle; text-align: left }
.gp-m .g-panel-m .table1 label { display: block; text-align: left; color: #444 }
.gp-m .g-panel-m .table1 input { width: 20px; height: 20px }
.gp-m .g-panel-foot { padding: 16px 14px 40px; text-align: center }
.gp-m .g-panel-foot .g-reset { display: inline-block; margin-left: 14px; color: #8775b5 }

.gi-m .gi-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 8px 6px }
.gi-m .gi-h2 { font-size: 19px; margin: 22px 8px 12px }
.gi-m .gi-img { height: 130px; padding: 8px }
.gi-m .gi-body { padding: 10px 10px 12px }
.gi-m .gi-title { font-size: 14px }
.gi-m .gi-blurb { font-size: 12px; min-height: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden }
.gi-m .gi-meta { font-size: 11px; margin: 6px 0 8px }
.gi-m .gi-btn { display: block; text-align: center; padding: 8px 6px; font-size: 12px }
.gi-shopall .g-btn { display: block; margin: 8px 12px }
@media (min-width: 700px) { .gi-shopall .g-btn { display: inline-block; margin: 4px 6px } }

/* ---------- category pages: sale badge, out-of-stock label ---------- */
.gp-imgbox { position: relative; display: inline-block }
.gp-sale { position: absolute; left: 8px; top: 8px; width: 46px; padding: 7px 0 6px; background: #000; color: #fff; font-family: 'Lato', sans-serif; font-weight: bold; font-size: 15px; line-height: 17px; text-align: center }
.gp-oos { display: block; width: max-content; margin: 5px auto 0; padding: 2px 10px; background: #999; color: #fff; font-size: 12px; border-radius: 2px }
.gp-salem { display: inline-block; margin-left: 6px; padding: 1px 6px; background: #000; color: #fff; font-size: 12px; font-weight: bold; vertical-align: middle }

/* ---------- single-link product card (desktop) ---------- */
.gp-card { display: block; padding: 5px 0 8px; border-radius: 5px; text-align: center; color: #8775b5 !important; text-decoration: none !important; font-family: 'Lato', sans-serif }
.gp-card:hover { background: #f7f6f8 }
.gp-card img { display: block; max-width: 100%; height: auto; border: 1px solid #ebe8f1; background: #fff }
.gp-title { display: block; min-height: 47px; padding: 8px 8px 0; font-weight: bold; font-size: 14px; line-height: 1.3 }
.gp-card .gp-price { display: block; margin-top: 6px }
