/* 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:16px;
    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: 24px 0 48px;
}

.tenant-footer {
    border-top: 1px solid #1f2532;
    padding: 18px 0;
    text-align: center;
    color: #9aa6bd;
    background: #141823;
}

.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;
}

/* 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;
}

.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;
}

@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));
    }
}

@media (max-width: 600px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
}

/* Product detail */
.product-page {
    padding-top: 10px;
}

.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-thumb {
    border: 1px solid #1f2532;
    background: #141823;
    border-radius: 6px;
    padding: 0;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    width: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: cover;
}

.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 {
    border-top: 1px solid #1f2532;
    border-bottom: 1px solid #1f2532;
    padding: 14px 0;
    display: grid;
    gap: 8px;
}

.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-detail-content img {
    max-width: 100%;
}

/* Reviews */
.review-wrap {
    display: grid;
    gap: 24px;
}

.review-form {
    display: grid;
    gap: 12px;
    border: 1px solid #1f2532;
    border-radius: 8px;
    padding: 16px;
    background: #141823;
}

.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) {
    .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;
    }

    .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;
    }    
}
