/* Mall default template styles (no Tailwind) */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Noto Sans KR", Arial, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
    color: #e6eaf2;
    background: #0f1117;
    font-size: 15px;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: #7cadff;
}

/* Tenant site layout */
.tenant-site {
    background: #0f1117;
    color: #e6eaf2;
}

.tenant-wrap {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
}

.tenant-header {
    background: #141823;
    border-bottom: 1px solid #1f2532;
    position: sticky;
    top: 0;
    z-index: 50;
}

.tenant-header .tenant-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 72px;
}

.tenant-brand {
    display: flex;
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -1px;
    white-space: nowrap;
}

.tenant-brand svg {
    width:30px;
    height: 30px;
    color: #8ab0ef;
    margin-top:6px;
    margin-right:6px;
}

.tenant-nav {
    display: flex;
    gap: 32px;
    margin-left:60px;
    flex: 1;
}

.tenant-nav a {
    font-size:18px;
    font-weight: 600;
    color: #b7c1d6;
}

.tenant-nav a:hover {
    color:#84b2ff;
}

.tenant-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tenant-auth svg {
    width:16px;
    height: 16px;
    color: #8db5ff;
    margin-top: 4px;
    margin-right:4px;
}

.tenant-auth form {
    margin: 0;
}

.tenant-auth a,
.tenant-auth button {
    color: #c6d0e4;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-size: 15px;
}

.tenant-user-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9aa6bd;
    font-size: 13px;
}

.tenant-user-info img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #2a3142;
}

.tenant-user-info .tenant-user-name {
    color: #c6d0e4;
    font-weight: 500;
}

.tenant-hamburger {
    display: none;
    border: 1px solid #2a3142;
    background: #151a27;
    color: #e6eaf2;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.tenant-mobile-nav {
    display: none;
    border-top: 1px solid #1f2532;
    background: #141823;
    padding: 12px 20px 16px;
}

.tenant-mobile-nav a {
    display: block;
    padding: 8px 0;
    color: #c0cadc;
}

.tenant-mobile-auth {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.tenant-mobile-nav.open {
    display: block;
}

.tenant-content {
    padding: 0 0 48px;
}

.tenant-footer {
    border-top: 1px solid #1f2532;
    padding: 12px 0 32px 0;
    color: #9aa6bd;
    background: #141823;
    font-size: 14px;
}

.tenant-footer .footer-link {
    gap: 12px;
    font-size: 15px;
    text-align: center;
    border-bottom: #253353 solid 1px;
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.tenant-footer .footer-link a {
    color:#c3d5ff;
}

.tenant-footer .footer-link a:hover {
    color:#8fb0ff;
}

.tenant-footer .footer-link .f_bar {
    margin:0 10px;
    font-size:12px;
    color:#273c6c;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #1f2532;
}

.footer-col {
    display: grid;
    gap: 8px;
    padding-right: 16px;
    border-right: 1px solid #1f2532;
}

.footer-col:last-child {
    border-right: 0;
    padding-right: 0;
}

.footer-title {
    color: #92b4fc;
    font-weight: 600;
    font-size: 17px;
}

.footer-tel {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
}

.footer-hours,
.footer-bank-list,
.footer-biz-list {
    display: grid;
    gap: 4px;
    color: #b7c1d6;
    font-size: 14px;
    line-height: 1;
}

.footer-bank-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.footer-bank-row .bank-name {
    color: #cbd5f5;
    font-weight: 600;
}

.footer-bank-holder {
    color: #9aa6bd;
    font-size: 13px;
}

.footer-bank-btn {
    width: fit-content;
    padding: 6px 12px 0px 12px !important;
    height:36px;
    border-radius: 4px;
    border: 1px solid #2b3345;
    background: #0f1117;
    color: #e6eaf2;
    font-size: 13px;
}

.footer-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-more {
    color: #9aa6bd;
    font-size: 12px;
}

.footer-notice-item {
    display: flex;
    justify-content: space-between;
    color: #cbd5f5;
    font-size: 14px;
}

.footer-notice-item span {
    color: #7f8aa3;
    white-space: nowrap;
}

.footer-empty {
    color: #7f8aa3;
}

.footer-bottom-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    margin-top: 18px;
}

.footer-biz {
    display: grid;
    gap: 10px;
    color: #9aa6bd;
    font-size: 14px;
    line-height: 1;
}

.footer-biz-line {
    display: flex;
    flex-wrap: wrap;
    line-height: 22px;
    gap:0px;
}

.footer-biz-line .fb_bar {
    margin:0 10px;
    font-size:12px;
    color:#273c6c;
}

.footer-copy {
    color: #7f8aa3;
    font-size: 12px;
}

.footer-escrow {
    border-left: 1px solid #1f2532;
    padding-left: 16px;
    display: grid;
    gap: 8px;
}

.footer-escrow-title {
    color: #e6eaf2;
    font-weight: 600;
    font-size: 16px;
}

.footer-escrow-text {
    color: #9aa6bd;
    font-size: 12px;
    line-height: 1.6;
}

.footer-escrow-meta {
    margin-top: 6px;
    color: #7f8aa3;
    font-size: 12px;
}

.footer-escrow-btn {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #2b3345;
    background: #0f1117;
    color: #e6eaf2;
    font-size: 12px;
}

.tenant-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    padding: 24px 0;
}

.tenant-tag {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #1f2a3d;
    color: #9fb3d1;
    font-size: 14px;
}

.tenant-lead {
    color: #b7c1d6;
    line-height: 1.6;
}

.tenant-card {
    border: 1px solid #1f2532;
    border-radius: 12px;
    padding: 18px;
    background: #141823;
}

.tenant-kv {
    font-size: 24px;
    font-weight: 600;
}

.tenant-meta {
    margin-top: 8px;
    color: #b7c1d6;
}

.tenant-section {
    margin-top: 30px;
}

.tenant-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tenant-section-head span {
    color: #9aa6bd;
}

.tenant-board-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tenant-board-card {
    border: 1px solid #1f2532;
    border-radius: 12px;
    padding: 18px;
    background: #141823;
    color: #e6eaf2;
}

.tenant-board-card .title {
    font-weight: 600;
    margin-bottom: 6px;
}

.tenant-board-card .desc {
    color: #9aa6bd;
    font-size: 14px;
}

h1 {
    margin: 16px 0 12px;
    font-size: 32px;
}

h2 {
    margin: 12px 0 10px;
    font-size: 20px;
}

/* Modules */
.module {
    margin: 34px 0;
}

.tenant-content .tenant-wrap > .module-main-slide:first-child {
    margin-top: 0;
}

.module-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.module-head h3 {
    font-size: 32px;
    font-weight: 600;
    color: #8ab9ff;
    margin: 12px 0;
}

.module-products .module-head,
.module-board-cards .module-head,
.module-board-webzine .module-head {
    justify-content: center;
    text-align: center;
}

.module-products .module-head h3,
.module-board-cards .module-head h3,
.module-board-webzine .module-head h3 {
    font-size: 32x;
}

/* Main slide */
.module-main-slide {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.main-slide {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    border: 0;
    height: var(--slide-height, 700px);
    background: #0f1117;
}

.main-slide-track {
    height: 100%;
    width: 100%;
    transition: transform 0.6s ease;
}

.main-slide[data-direction="horizontal"] .main-slide-track {
    display: flex;
}

.main-slide[data-direction="vertical"] .main-slide-track {
    display: block;
}

.main-slide-item {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 0 0 100%;
}

.main-slide-media {
    position: absolute;
    inset: 0;
    background-size: auto 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.main-slide-media iframe {
    width: 100%;
    height: 100%;
}

.main-slide-overlay {
    position: absolute;
    inset: 0;
}

.main-slide-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 48px;
    z-index: 2;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.main-slide-content.align-x-left {
    align-items: flex-start;
    text-align: left;
}

.main-slide-content.align-x-right {
    align-items: flex-end;
    text-align: right;
}

.main-slide-content.align-y-top {
    justify-content: flex-start;
}

.main-slide-content.align-y-bottom {
    justify-content: flex-end;
}

.main-slide-content h2 {
    font-size: 36px;
    margin: 0;
}

.main-slide-content p {
    margin: 0;
    font-size: 16px;
    color: inherit;
    max-width: 640px;
    line-height: 1.6;
}

.main-slide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: inherit;
    font-weight: 600;
    margin-top: 10px;
}

.main-slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(15, 17, 23, 0.7);
    color: #ffffff;
    cursor: pointer;
    z-index: 3;
}

.main-slide-arrow.prev {
    left: 16px;
}

.main-slide-arrow.next {
    right: 16px;
}

.main-slide-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.main-slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
}

.main-slide-dot.active {
    background: #ffffff;
}

/* Products module */
.module-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    border: 1px solid #1f2532;
    background: #141823;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.module-products .product-thumb {
    background: #0f1117;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.module-products .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.module-products .product-info {
    padding: 14px 12px 16px;
    text-align: center;
}

.module-products .product-title {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.35;
    height:24px;
    overflow: hidden;
}

.module-products .product-prices {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.module-products .product-price-market {
    color: #9aa6bd;
    font-size: 13px;
    text-decoration: line-through;
}

.module-products .product-price-sale {
    color: #8ab9ff;
    font-weight: 600;
    font-size: 16px;
}

.module-products .product-card.size-sm .product-title {
    font-size: 16px;
}

.module-products .product-card.size-lg .product-title {
    font-size: 21px;
}

/* Board cards */
.board-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.board-card {
    border: 1px solid #1f2532;
    background: #141823;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.board-card-thumb {
    aspect-ratio: 16 / 9;
    background: #0f1117;
    overflow: hidden;
}

.board-card-thumb img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.board-card-body {
    padding: 12px 12px 16px 12px !important;
}

.board-card-title {
    font-size: 17px;
    font-weight: 600;
    height: 48px;
    overflow: hidden;
    margin-bottom: 10px;
}

.board-card-excerpt {
    font-size: 14px;
    color: #9aa6bd;
    line-height: 1.5;
    height: 60px;
    overflow: hidden;
    margin-bottom: 8px;
}

/* Webzine */
.board-webzine-list {
    display: grid;
    gap: 16px;
}

.board-webzine-item {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 16px;
    border: 1px solid #1f2532;
    background: #141823;
    border-radius: 12px;
    overflow: hidden;
}

.board-webzine-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.board-webzine-body {
    padding: 16px;
}

.board-webzine-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.board-webzine-excerpt {
    color: #9aa6bd;
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .module-products-grid,
    .board-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .board-webzine-item {
        grid-template-columns: 200px 1fr;
    }
}

@media (max-width: 900px) {
    .module-products-grid,
    .board-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .module-products .module-head h3,
    .module-board-cards .module-head h3,
    .module-board-webzine .module-head h3 {
        font-size: 24px;
    }
}

@media (max-width: 700px) {
    .main-slide {
        height: var(--slide-mobile-height, 360px);
    }
    .main-slide-content {
        padding: 24px;
    }
    .main-slide-content h2 {
        font-size: 24px;
    }
    .board-webzine-item {
        grid-template-columns: 1fr;
    }
    .module-products-grid,
    .board-cards-grid {
        gap: 12px;
    }
    .module-products .product-title {
        font-size: 16px;
    }
    .module-products .product-card.size-lg .product-title {
        font-size: 18px;
    }
    .module-products .module-head h3,
    .module-board-cards .module-head h3,
    .module-board-webzine .module-head h3 {
        font-size: 22px;
    }
}

/* Shop list */
.shop-page {
    padding-top: 10px;
}

.shop-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #1f2532;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.shop-header h2 {
  position: relative;
  font-size:36px !important;
  font-weight: 600;
  letter-spacing: -1px;
  padding: 20px 0;
  margin-bottom: 16px;
  color:#8ab9ff;
}

.shop-header h2::before {
  content: '';
  position: absolute;
  left: 43%;
  bottom:4px;
  width: 35px;
  height: 2px;
  background-color: #8ab9ff;
}

.shop-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 16px;
}

.shop-filter {
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #2b3345;
    color: #c0cadc;
    letter-spacing: -1px;
    font-weight: 500;
    font-size: 16px;
}

.shop-filter.is-active {
    border-color: #7d9dd8;
    font-weight: 600;
    color: #83afff;
}

/* Customer center */
.customer-page {
    padding-top: 10px;
}

.cs-header h2 {
  position: relative;
  text-align: center;
  font-size:32px !important;
  font-weight: 600;
  letter-spacing: -1px;
  padding: 12px 0;
  margin-bottom: 26px;
  color:#8ab9ff;
}

.cs-header h2::before {
  content: '';
  position: absolute;
  left: 49%;
  bottom: 0px;
  width: 30px;
  height: 2px;
  background-color: #8ab9ff; /* 원하는 색상으로 변경 가능 */
} 

.cs-header-line {
    color: #9aa6bd;
}

.cs-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: start;
}

.cs-sidebar {
    border: 1px solid #1f2532;
    border-radius: 12px;
    background: #141823;
    padding: 12px;
}

.cs-menu-list {
    display: grid;
    gap: 8px;
}

.cs-menu-item {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #2b3345;
    background: #0f1117;
    color: #c0cadc;
    letter-spacing: -1px;
    font-weight: 500;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
}

.cs-menu-item.is-active {
    border-color: #7d9dd8;
    color: #83afff;
    font-weight: 600;
}

.cs-content {
    min-width: 0;
    min-height: 750px;
}

.cs-panel {
    border: 1px solid #1f2532;
    border-radius: 12px;
    background: #141823;
    padding: 20px;
    display: none;
}

.cs-panel.is-active {
    display: block;
}

.cs-faqs {
    display: grid;
    gap: 10px;
}

.cs-faq {
    border: 1px solid #1f2532;
    border-radius: 8px;
    background: #0f1117;
    padding: 10px 12px;
}

.cs-faq summary {
    cursor: pointer;
    color: #e6eaf2;
    font-weight: 600;
}

.cs-faq-body {
    margin-top: 8px;
    color: #cbd5f5;
    font-size: 14px;
    line-height: 1.6;
}

.cs-detail {
    border-top: 1px solid #1f2532;
    margin-top: 16px;
    padding-top: 16px;
}

.cs-detail-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.cs-detail-title {
    color: #e6eaf2;
    font-size: 18px;
    font-weight: 600;
}

.cs-detail-date {
    color: #9aa6bd;
    font-size: 13px;
    white-space: nowrap;
}

.cs-detail-body {
    color: #d6deef;
    font-size: 14px;
    line-height: 1.7;
}

.cs-detail-body img,
.cs-detail-body table {
    max-width: 100%;
}

.cs-policy {
    color: #d6deef;
    font-size: 14px;
    line-height: 1.7;
}

.cs-policy img,
.cs-policy table {
    max-width: 100%;
}
.cs-section-title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #8ab9ff;
    margin-bottom: 10px;
}

.cs-section-sub {
    text-align: center;
    margin-bottom: 16px;
    color: #9aa6bd;
}

.cs-section-sub a {
    color: #9fb3d1;
}

.cs-list {
    display: grid;
    gap: 8px;
}

.cs-list-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #1f2532;
    color: #e6eaf2;
}

.cs-list-date {
    color: #9aa6bd;
    font-size: 13px;
    white-space: nowrap;
}

.cs-empty {
    text-align: center;
    color: #9aa6bd;
    padding: 16px 0;
}

/* Mypage */
.mypage-page .cs-content {
    display: grid;
    gap: 16px;
}

.cs-card {
    border: 1px solid #1f2532;
    border-radius: 10px;
    background: #0f1117;
    padding: 16px;
    display: grid;
    gap: 8px;
}

.cs-card-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    align-items: center;
}

.cs-card-label {
    color: #9aa6bd;
    font-size: 13px;
}

.cs-card-value {
    color: #e6eaf2;
    font-weight: 500;
}

.cs-profile-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #2a3142;
}

.cs-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.cs-stat {
    border: 1px solid #1f2532;
    border-radius: 10px;
    background: #0f1117;
    padding: 14px;
    text-align: center;
}

.cs-stat-title {
    color: #9aa6bd;
    font-size: 13px;
    margin-bottom: 6px;
}

.cs-stat-value {
    color: #e6eaf2;
    font-weight: 600;
    font-size: 16px;
}

.cs-form {
    display: grid;
    gap: 16px;
}

.cs-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cs-form-wide {
    grid-column: 1 / -1;
}

.cs-label {
    display: block;
    color: #9aa6bd;
    font-size: 13px;
    margin-bottom: 6px;
}

.cs-input,
.cs-textarea {
    width: 100%;
    border: 1px solid #2b3345;
    background: #0f1117;
    color: #e6eaf2;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
}

.cs-textarea {
    resize: vertical;
}

.cs-input[readonly] {
    color: #8b96ac;
}

.cs-input-file {
    margin-top: 8px;
    color: #c0cadc;
}

.cs-profile-edit {
    display: grid;
    gap: 8px;
}

.cs-address {
    display: grid;
    gap: 8px;
}

.cs-address-row {
    display: flex;
    gap: 8px;
}

.cs-button {
    border: 1px solid #2b3345;
    background: #141823;
    color: #e6eaf2;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.cs-button-primary {
    background: #2f4a7a;
    border-color: #2f4a7a;
}

.cs-form-actions {
    display: flex;
    justify-content: flex-end;
}

.cs-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 12px;
}

.cs-table {
    display: grid;
    gap: 6px;
}

.cs-table-head,
.cs-table-row {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
}

.cs-table-head {
    background: #141823;
    border: 1px solid #1f2532;
    color: #9aa6bd;
    font-size: 13px;
}

.cs-table-row {
    background: #0f1117;
    border: 1px solid #1f2532;
    color: #e6eaf2;
    font-size: 14px;
}

#mp-points .cs-table-head,
#mp-points .cs-table-row,
#mp-reviews .cs-table-head,
#mp-reviews .cs-table-row,
#mp-comments .cs-table-head,
#mp-comments .cs-table-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

#mp-orders .cs-table-head,
#mp-orders .cs-table-row {
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

.cs-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #1f2532;
}

.cs-link {
    color: #9fb3d1;
}

.cs-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.cs-page-btn {
    border: 1px solid #2b3345;
    padding: 6px 12px;
    border-radius: 6px;
    color: #c0cadc;
    font-size: 14px;
}

.cs-page-info {
    color: #9aa6bd;
    font-size: 13px;
}

.cs-summary {
    text-align: right;
    color: #c0cadc;
    margin-top: 10px;
}

.cs-subtext {
    text-align: center;
    color: #9aa6bd;
    margin-bottom: 8px;
    font-size: 13px;
}

@media (max-width: 900px) {
    .cs-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cs-form-grid {
        grid-template-columns: 1fr;
    }
    .cs-card-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .cs-table-head,
    .cs-table-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        font-size: 12px;
    }
    #mp-orders .cs-table-head,
    #mp-orders .cs-table-row,
    #mp-points .cs-table-head,
    #mp-points .cs-table-row,
    #mp-reviews .cs-table-head,
    #mp-reviews .cs-table-row,
    #mp-comments .cs-table-head,
    #mp-comments .cs-table-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.cs-youtube-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.cs-youtube-card {
    display: grid;
    gap: 10px;
    border-radius: 10px;
    border: 1px solid #1f2532;
    background: #0f1117;
    overflow: hidden;
    padding: 10px;
}

.cs-youtube-thumb {
    position: relative;
    padding-top: 56.25%;
    border-radius: 8px;
    overflow: hidden;
    background: #0f1117;
}

.cs-youtube-thumb.is-shorts {
    padding-top: 150%;
}

.cs-youtube-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-youtube-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.cs-youtube-title {
    font-size: 14px;
    line-height: 1.4;
    color: #e6eaf2;
}

.cs-audio-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 12px;
}

.cs-filter-btn {
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #2b3345;
    background: transparent;
    color: #c0cadc;
    letter-spacing: -1px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.cs-filter-btn.is-active {
    border-color: #7d9dd8;
    color: #83afff;
    font-weight: 600;
}

.cs-audio-player {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.mp3_player {width:60%;display:block;margin:20px auto;}

.cs-audio-title {
    color: #9aa6bd;
    font-size: 13px;
}

.cs-audio-list {
    display: grid;
    gap: 10px;
}

.cs-audio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #1f2532;
    background: #0f1117;
}

.cs-audio-meta {
    display: grid;
    gap: 4px;
}

.cs-audio-name {
    color: #e6eaf2;
    font-size: 14px;
}

.cs-audio-board {
    color: #9aa6bd;
    font-size: 12px;
}

.cs-audio-play {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #2b3345;
    background: #141823;
    color: #e6eaf2;
    cursor: pointer;
    font-size: 12px;
}

.cs-audio-play.is-playing {
    border-color: #7d9dd8;
    color: #83afff;
}

.shop-alert {
    border: 1px solid rgba(244, 63, 94, 0.6);
    background: rgba(127, 29, 29, 0.15);
    color: #fca5a5;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.shop-card {
    border: 1px solid #1f2532;
    background: #141823;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.shop-thumb {
    background: #0f1117;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-info {
    padding: 14px 12px 16px;
    text-align: center;
}

.shop-title {
    font-size: 15px;
    font-weight: 600;
    color: #e6eaf2;
    margin-bottom: 8px;
}

.shop-prices {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.shop-price-market {
    color: #9aa6bd;
    font-size: 13px;
    text-decoration: line-through;
}

.shop-price-sale {
    color: #4689e5;
    font-weight: 700;
    font-size: 15px;
}

.shop-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #9aa6bd;
    padding: 40px 0;
}

.shop-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.shop-pagination .page-btn {
    border: 1px solid #2b3345;
    padding: 6px 12px;
    border-radius: 6px;
    color: #c0cadc;
    font-size: 14px;
    min-width: 36px;
    text-align: center;
}

.shop-pagination .page-btn.is-active {
    border-color: #7d9dd8;
    color: #83afff;
    font-weight: 600;
}

.shop-pagination .page-btn.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 1100px) {
    .shop-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .shop-filters {
        justify-content: center;
    }
    .shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cs-menu,
    .cs-audio-filter {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
    }
    .cs-menu::-webkit-scrollbar,
    .cs-audio-filter::-webkit-scrollbar {
        display: none;
    }
    .cs-youtube-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cs-layout {
        grid-template-columns: 1fr;
    }
    .cs-sidebar {
        padding: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .cs-menu-list {
        display: flex;
        gap: 8px;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        width: max-content;
        min-width: 100%;
    }
    .cs-menu-list::-webkit-scrollbar {
        display: none;
    }
    .cs-menu-item {
        white-space: nowrap;
        flex: 0 0 auto;
    }
}

@media (max-width: 600px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
    .cs-youtube-grid {
        grid-template-columns: 1fr;
    }
}

/* Product detail */
.product-page {
    padding-top: 50px;
}

.product-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
    align-items: start;
}

.product-gallery {
    display: grid;
    gap: 14px;
}

.product-main {
    border: 1px solid #1f2532;
    background: #141823;
    border-radius: 8px;
    padding: 12px;
}

.product-main img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.product-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.product-small-thumb {
    border: 1px solid #1f2532;
    background: #141823;
    border-radius: 6px;
    padding: 0;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    width: 100%;
    display: flex;
    width:72px;
    align-items: center;
    justify-content: center;
}

.product-small-thumb img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: cover;
}

.module-products .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.product-summary {
    display: grid;
    gap: 14px;
}

.product-breadcrumb {
    color: #9aa6bd;
    font-size: 14px;
}

.product-title {
    font-size: 26px;
    font-weight: 600;
    margin: 0;
}

.product-short {
    color: #b7c1d6;
    line-height:22px;
}

.product-prices {
    padding: 0px;
    display: grid;
}

.product-info {
    display: grid;
    padding: 0px;
}

.product-info-row {
    display: flex;
    justify-content: space-between;
    color: #c6d0e4;
    font-size: 14px;
}

.product-order {
    display: grid;
    gap: 12px;
    padding-top: 10px;
}

.product-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #c6d0e4;
    font-size: 14px;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #2b3345;
    border-radius: 6px;
    padding: 4px 6px;
    background: #0f1117;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #2b3345;
    background: #141823;
    color: #e6eaf2;
    border-radius: 4px;
    cursor: pointer;
}

.qty-input {
    width: 60px;
    text-align: center;
    border: 0;
    background: transparent;
    color: #e6eaf2;
    font-size: 14px;
}

.product-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #1f2532;
    padding-top: 12px;
    font-size: 16px;
    color: #e6eaf2;
}

.product-total strong {
    color: #ff4d4f;
    font-size: 20px;
}

/* Cart */
.cart-page {
    display: grid;
    gap: 16px;
}

.cart-page h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.cart-list {
    display: grid;
    gap: 12px;
}

.cart-item {
    display: grid;
    grid-template-columns: 90px 1fr auto auto;
    gap: 16px;
    align-items: center;
    border: 1px solid #1f2532;
    border-radius: 8px;
    padding: 12px;
    background: #141823;
}

.cart-thumb img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #1f2532;
}

.cart-title {
    font-weight: 600;
    color: #e6eaf2;
    margin-bottom: 6px;
}

.cart-meta {
    color: #9aa6bd;
    font-size: 13px;
}

.cart-price {
    color: #ff4d4f;
    font-weight: 700;
}

.cart-qty-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.cart-qty-input {
    width: 70px;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #2b3345;
    background: #0f1117;
    color: #e6eaf2;
    text-align: center;
}

.cart-btn {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #2b3345;
    background: #141823;
    color: #e6eaf2;
    cursor: pointer;
    font-size: 12px;
}

.cart-btn.danger {
    border-color: rgba(244, 63, 94, 0.6);
    color: #fca5a5;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid #1f2532;
    border-radius: 8px;
    background: #141823;
    font-size: 16px;
}

.cart-total strong {
    color: #ff4d4f;
    font-size: 20px;
}

.cart-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

@media (max-width: 700px) {
    .cart-item {
        grid-template-columns: 70px 1fr;
        gap: 10px;
    }
    .cart-price {
        grid-column: 1 / -1;
        text-align: right;
    }
    .cart-delete-form {
        grid-column: 1 / -1;
        text-align: right;
    }
}

/* Checkout */
.checkout-page {
    display: grid;
    gap: 16px;
}

.checkout-page h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.checkout-tip {
    border: 1px solid #1f2532;
    background: #141823;
    padding: 10px 12px;
    color: #c6d0e4;
    font-size: 13px;
}

.checkout-table {
    border: 1px solid #1f2532;
    border-radius: 8px;
    overflow: hidden;
}

.checkout-row {
    display: grid;
    grid-template-columns: 90px 1fr 60px 90px 90px 70px 70px;
    gap: 8px;
    padding: 10px;
    align-items: center;
    border-top: 1px solid #1f2532;
    background: #0f1117;
}

.checkout-row.header {
    background: #141823;
    font-weight: 600;
}

.checkout-row img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 1px solid #1f2532;
    border-radius: 6px;
}

.checkout-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.summary-block {
    border: 1px solid #1f2532;
    border-radius: 8px;
    padding: 12px;
    background: #141823;
}

.summary-block h3 {
    margin: 0 0 10px;
    font-size: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: #c6d0e4;
    font-size: 14px;
}

.summary-row.total {
    border-top: 1px solid #1f2532;
    margin-top: 6px;
    padding-top: 10px;
    font-weight: 700;
    color: #ff4d4f;
}

.checkout-section {
    border: 1px solid #1f2532;
    border-radius: 8px;
    padding: 12px;
    background: #141823;
}

.checkout-section h3 {
    margin: 0 0 10px;
    font-size: 15px;
}

.checkout-form {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px 12px;
    align-items: center;
}

.checkout-form input,
.checkout-form textarea {
    border: 1px solid #2b3345;
    background: #0f1117;
    color: #e6eaf2;
    border-radius: 6px;
    padding: 8px 10px;
}

.address-row {
    display: flex;
    gap: 8px;
}

.address-stack {
    grid-column: 2 / 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.checkout-btn {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #2b3345;
    background: #141823;
    color: #e6eaf2;
    cursor: pointer;
}

.pay-methods {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ship-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: #c6d0e4;
    font-size: 14px;
}

.checkout-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
}

.bank-info {
    margin-top: 16px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #2a2f35;
    background: #11141a;
}

.bank-info h4 {
    font-size: 15px;
    margin-bottom: 10px;
}

.bank-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.bank-row label {
    color: #c6d0e4;
    font-size: 14px;
}

.bank-row input,
.bank-row select {
    background: #0f141a;
    border: 1px solid #2a2f35;
    color: #e4ecff;
    padding: 8px 10px;
    border-radius: 8px;
}

.bank-empty {
    color: #9aa3b2;
    font-size: 13px;
}

.payment-alert {
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #3a1f1f;
    color: #ffd6d6;
    border: 1px solid #6a2b2b;
}

.payment-result {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #2a2f35;
    background: #12151a;
}

.payment-result.success {
    border-color: #2f6a3a;
}

.payment-result.fail {
    border-color: #6a2b2b;
}

.payment-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.payment-message {
    color: #cbd5f5;
    margin-bottom: 12px;
}

.payment-meta {
    color: #9aa3b2;
    margin-bottom: 12px;
}

.nanopay-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.nanopay-modal {
    width: min(920px, 94vw);
    height: min(720px, 94vh);
    background: #0f141a;
    border: 1px solid #2a2f35;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.nanopay-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #151a21;
    color: #e4ecff;
    border-bottom: 1px solid #2a2f35;
}

.nanopay-close {
    background: #1f2530;
    color: #e4ecff;
    border: 1px solid #2a2f35;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
}

.nanopay-frame {
    flex: 1;
    width: 100%;
    border: 0;
    background: #fff;
}

@media (max-width: 900px) {
    .checkout-row {
        grid-template-columns: 70px 1fr 50px 70px 70px 50px 50px;
        font-size: 12px;
    }
    .checkout-summary {
        grid-template-columns: 1fr;
    }
    .checkout-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .checkout-row.header {
        display: none;
    }
    .checkout-row {
        grid-template-columns: 84px 1fr;
        grid-template-areas:
            "image name"
            "image qty"
            "image price"
            "image line"
            "image point"
            "image ship";
        gap: 6px 10px;
        padding: 12px;
        font-size: 13px;
    }
    .checkout-row > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .checkout-row > div:nth-child(1) {
        grid-area: image;
        justify-content: flex-start;
    }
    .checkout-row > div:nth-child(2) {
        grid-area: name;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        font-weight: 600;
    }
    .checkout-row > div:nth-child(3) { grid-area: qty; }
    .checkout-row > div:nth-child(4) { grid-area: price; }
    .checkout-row > div:nth-child(5) { grid-area: line; }
    .checkout-row > div:nth-child(6) { grid-area: point; }
    .checkout-row > div:nth-child(7) { grid-area: ship; }
    .checkout-row > div:nth-child(2)::before { content: "상품"; }
    .checkout-row > div:nth-child(3)::before { content: "수량"; }
    .checkout-row > div:nth-child(4)::before { content: "상품금액"; }
    .checkout-row > div:nth-child(5)::before { content: "소계"; }
    .checkout-row > div:nth-child(6)::before { content: "포인트"; }
    .checkout-row > div:nth-child(7)::before { content: "배송비"; }
    .checkout-row > div:nth-child(n+2)::before {
        opacity: 0.7;
        font-size: 12px;
    }
    .checkout-row img {
        width: 80px;
        height: 80px;
    }
    .checkout-form label {
        font-size: 13px;
        opacity: 0.85;
    }
    .address-row {
        flex-direction: column;
        align-items: stretch;
    }
    .address-stack {
        grid-template-columns: 1fr;
    }
    .checkout-btn {
        width: 100%;
    }
    .pay-methods,
    .ship-options {
        flex-direction: column;
        align-items: flex-start;
    }
    .bank-row {
        grid-template-columns: 1fr;
    }
    .checkout-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .checkout-actions .product-btn {
        width: 100%;
    }
}

/* Recent viewed widget */
.recent-box {
    position: fixed;
    right: 30px;
    top: 120px;
    width: 100px;
    background: #141823;
    border: 1px solid #1f2532;
    border-radius: 8px;
    z-index: 60;
    overflow: hidden;
}

.recent-head {
    background: #2b3345;
    color: #e6eaf2;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    padding: 8px 6px;
}

.recent-items {
    display: grid;
    gap: 8px;
    padding: 10px 10px 6px;
    min-height: 200px;
}

.recent-item {
    width: 100%;
    border: 1px solid #1f2532;
    border-radius: 6px;
    overflow: hidden;
    background: #0f1117;
}

.recent-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    display: block;
}

.recent-empty {
    color: #9aa6bd;
    text-align: center;
    font-size: 12px;
    padding: 16px 0;
}

.recent-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 0 10px;
}

.recent-btn {
    width: 28px;
    height: 22px;
    border: 1px solid #2b3345;
    background: #0f1117;
    color: #e6eaf2;
    border-radius: 4px;
    cursor: pointer;
}

.recent-page {
    font-size: 12px;
    color: #9aa6bd;
}

.recent-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    background: #2b3345;
    color: #e6eaf2;
    font-weight: 600;
    font-size: 13px;
    border-top: 1px solid #1f2532;
}

.recent-badge {
    background: #ff4d4f;
    color: #fff;
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 12px;
}

@media (max-width: 1100px) {
    .recent-box {
        display: none;
    }
}

.product-price-market {
    color: #9aa6bd;
    text-decoration: line-through;
}

.product-price-sale {
    color: #ff4d4f;
    font-weight: 700;
    font-size: 18px;
}

.product-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.product-btn {
    border: 1px solid #2b3345;
    background: #141823;
    color: #e6eaf2;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.product-btn.primary {
    background: #ff4d4f;
    border-color: #ff4d4f;
    color: #fff;
}

.product-share {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9aa6bd;
    font-size: 13px;
}

.product-share-buttons {
    display: flex;
    gap: 6px;
}

.product-share-buttons button {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid #2b3345;
    background: #141823;
    color: #e6eaf2;
    cursor: pointer;
    font-size: 12px;
}

.product-tabs {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid #1f2532;
}

.product-tab {
    padding: 12px;
    background: #141823;
    color: #c6d0e4;
    border: 1px solid #1f2532;
    border-bottom: none;
    cursor: pointer;
    font-size: 14px;
}

.product-tab.is-active {
    background: #0f1117;
    color: #fff;
    border-color: #2b3345;
}

.product-tab-panel {
    display: none;
    padding: 20px 10px;
}

.product-tab-panel.is-active {
    display: block;
}

.product-page.continuous-tabs .product-tab-panel {
    display: block;
    margin-top: 18px;
}

.product-page.continuous-tabs .product-tab {
    cursor: pointer;
}

.product-detail-content img {
    max-width: 90%;
    width: 850px !important;
    height: auto;
    margin:0 auto !important;
    display: block;
}

/* Reviews */
.review-wrap {
    display: grid;
    gap: 24px;
}

.review-form {
    display: grid;
    gap: 12px;
    border: 1px solid #1f2532;
    border-radius: 8px;
    padding: 16px;
    background: #141823;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-overlay.open {
    display: flex;
}

.modal-panel {
    width: min(680px, 92vw);
    max-height: 90vh;
    overflow: auto;
    background: #0f1117;
    border: 1px solid #1f2532;
    border-radius: 12px;
    padding: 16px;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.modal-head h3 {
    margin: 0;
    font-size: 18px;
    color: #e6eaf2;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #2b3345;
    background: #141823;
    color: #e6eaf2;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.review-field {
    display: grid;
    gap: 6px;
}

.review-field label {
    color: #c6d0e4;
    font-size: 13px;
}

.review-field input[type="text"],
.review-field input[type="password"],
.review-field textarea {
    border: 1px solid #2b3345;
    background: #0f1117;
    color: #e6eaf2;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
}

.review-stars {
    display: flex;
    gap: 6px;
}

.review-stars input {
    display: none;
}

.review-stars span {
    font-size: 18px;
    color: #384155;
    cursor: pointer;
}

.review-star.is-active span {
    color: #f5c518;
}

.review-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.review-list {
    display: grid;
    gap: 16px;
}

.review-replies {
    margin-top: 10px;
    padding-left: 20px;
    border-left: 2px solid #1f2532;
    display: grid;
    gap: 10px;
}

.review-reply {
    background: #0f1117;
    border: 1px solid #1f2532;
    border-radius: 6px;
    padding: 10px;
}

.review-reply-head {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.review-link {
    background: none;
    border: 0;
    color: #9aa6bd;
    cursor: pointer;
    font-size: 13px;
}

.review-edit {
    margin-top: 10px;
    border-top: 1px dashed #2b3345;
    padding-top: 10px;
    display: grid;
    gap: 10px;
}

.qna-wrap {
    display: grid;
    gap: 24px;
}

.qna-item {
    border: 1px solid #1f2532;
    border-radius: 8px;
    padding: 12px;
    background: #141823;
    display: grid;
    gap: 8px;
}

.qna-head {
    display: flex;
    gap: 10px;
    align-items: center;
}

.qna-name {
    color: #e6eaf2;
    font-weight: 600;
}

.qna-date {
    color: #9aa6bd;
    font-size: 12px;
}

.qna-content {
    color: #c6d0e4;
    line-height: 1.5;
}

.qna-replies {
    margin-top: 8px;
    padding-left: 16px;
    border-left: 2px solid #1f2532;
    display: grid;
    gap: 8px;
}

.qna-reply {
    background: #0f1117;
    border: 1px solid #1f2532;
    border-radius: 6px;
    padding: 10px;
}

.hidden {
    display: none;
}

.review-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 12px;
    border: 1px solid #1f2532;
    border-radius: 8px;
    background: #141823;
}

.review-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #2a3142;
}

.review-avatar span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1f2532;
    color: #c6d0e4;
    font-size: 14px;
    border: 1px solid #2a3142;
}

.review-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.review-name {
    color: #e6eaf2;
    font-weight: 600;
}

.review-stars-text {
    color: #f5c518;
    font-size: 13px;
}

.review-stars-text span {
    color: #384155;
}

.review-stars-text span.is-filled {
    color: #f5c518;
}

.review-date {
    color: #9aa6bd;
    font-size: 12px;
}

.review-content {
    color: #c6d0e4;
    line-height: 1.5;
}

.review-images {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.review-images img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #1f2532;
}

.review-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.review-page-link {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #2b3345;
    color: #9aa6bd;
    font-size: 13px;
}

.review-page-link.is-active {
    border-color: #e6eaf2;
    color: #e6eaf2;
}

.product-empty {
    color: #9aa6bd;
    text-align: center;
    padding: 30px 0;
}

@media (max-width: 1000px) {
    .product-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .product-thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .product-actions {
        grid-template-columns: 1fr;
    }
    .product-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {

    .board-card {
        border:none !important;
        background: none !important;
        border-radius: 8px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .board-card-thumb {
        aspect-ratio: 16 / 9;
        overflow: hidden;
    }

    .board-card-thumb img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .board-card-body {
        background: none !important;
        padding: 12px 0 !important;
    }

    .board-card-title {
        font-size: 17px;
        font-weight: 600;
        height: 28px;
        overflow: hidden;
        margin-bottom: 10px;
    }

    .tenant-header .tenant-wrap {
        height: auto;
        padding: 14px 20px;
    }
    .tenant-nav,
    .tenant-auth {
        display: none;
    }
    .tenant-hamburger {
        display: inline-flex;
        margin-left: auto;
    }
    .tenant-hero {
        grid-template-columns: 1fr;
    }
    .tenant-board-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-col {
        border-right: 0;
        padding-right: 0;
        border-bottom: 1px solid #1f2532;
        padding-bottom: 14px;
    }
    .footer-col:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }
    .footer-bottom-grid {
        grid-template-columns: 1fr;
    }
    .footer-escrow {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid #1f2532;
        padding-top: 14px;
    }

    .footer-top {text-align: center;}
    .footer-bank-row {margin:0 auto !important;}
    .footer-bank-btn {
        width: fit-content;
        margin:8px auto 0 auto;
        padding: 6px 12px 6px 12px;
        border-radius: 4px;
        border: 1px solid #2b3345;
        background: #0f1117;
        color: #e6eaf2;
        font-size: 13px;
    }
    .footer-hours {display: none;}
    .footer-notice {display: none;}
    .footer-escrow  {display: none;}
    .fb_bar {display: none;}
    .footer-biz-line {flex-direction: column;text-align: center;}
    .footer-copy {text-align: center;margin-top:12px;}

    .board-title h2 {
      position: relative;
      font-size:30px !important;
      font-weight: 600;
      letter-spacing: -1px;
      padding: 12px 0;
      margin-bottom: 26px;
      color:#8ab9ff;
    }

    .tenant-mobile-auth {border-top:#244065 solid 1px;padding-top:4px;}
    .tenant-mobile-auth svg {width:16px;height: 16px;color:#aaceff; margin-right:4px;}

    .board-title h2::before {
      content: '';
      position: absolute;
      left: 48%;
      bottom: 0px;
      width: 30px;
      height: 2px;
      background-color: #8ab9ff; /* 원하는 색상으로 변경 가능 */
    }    

    .shop-header h2 {
      position: relative;
      font-size:32px !important;
      font-weight: 600;
      letter-spacing: -1px;
      padding: 0px 0 20px 0;
      margin-bottom: 16px;
      color:#8ab9ff;
    }

    .shop-header h2::before {
      content: '';
      position: absolute;
      left: 43%;
      bottom:4px;
      width: 30px;
      height: 2px;
      background-color: #8ab9ff;
    }

    .shop-filters {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 16px;
    }

    .shop-filter {
        padding: 6px 12px;
        border-radius: 4px;
        border: 1px solid #2b3345;
        color: #c0cadc;
        letter-spacing: -1px;
        font-weight: 500;
        font-size: 15px;
    }

    .shop-filter.is-active {
        border-color: #7d9dd8;
        font-weight: 600;
        color: #83afff;
    }    

    .product-detail-content img {
        max-width: 100%;
        width: 100% !important;
        height: auto;
        object-fit: contain;
        display: block;
    }    
}
