﻿/* 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: #333;
    background: #ffffff;
    font-size: 15px;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: #3b67cf;
}

/* Tenant site layout */
.tenant-site {
    background: #ffffff;
    color: #333;
}

.tenant-wrap {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
}

.tenant-header {
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    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;
    color: #111;
}

.tenant-brand svg {
    width: 32px;
    height: 32px;
    color: #777 !important;
    margin-top: 4px;
    margin-right: 0px;
}

.tenant-nav {
    display: flex;
    gap: 32px;
    margin-left: 60px;
    flex: 1;
}

.tenant-nav a {
    font-size: 19px !important;
    font-weight: 600;
    color: #333;
}

.tenant-nav a:hover {
    color: #3b67cf;
}

.tenant-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tenant-auth svg {
    width: 16px;
    height: 16px;
    color: #3b67cf;
    margin-top: 4px;
    margin-right: 4px;
}

.tenant-auth form {
    margin: 0;
}

.tenant-auth a,
.tenant-auth button {
    color: #4b5563;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-size: 15px;
}

.tenant-user-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ccc !important;
    font-weight: 500 !important;
    font-size: 13px;
}

.tenant-user-info img {
    width: 22px;
    height: 22px;
    margin-left: 8px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.tenant-user-info .tenant-user-name {
    color: #3b67cf;
    font-weight: 500;
}

.tenant-hamburger {
    display: none;
    color: #3b67cf;
    padding: 6px 10px 6px 0;
    cursor: pointer;
}

.tenant-mobile-nav {
    display: none;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 12px 20px 16px;
}

.tenant-mobile-nav a {
    display: block;
    padding: 8px 0;
    color: #4b5563;
}

.tenant-mobile-auth {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    border-top: #e5e7eb solid 1px;
    padding-top: 4px;
}

.tenant-mobile-userline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tenant-mobile-auth svg {
    width: 16px;
    height: 16px;
    color: #6aa6ff;
    margin-right: 4px;
}

.tenent-login {
    display: flex;
    background: #333;
    padding: 8px 0;
    margin-top: -22px;
}

.tenent-logout {
    display: flex;
    background: #333;
    padding: 8px 0;
    margin-top: -16px;
}

.tenant-mobile-nav.open {
    display: block;
}

.tenant-content {
    padding: 0 0 48px;
}

.tenant-footer {
    margin-top: 45px;
    padding: 12px 0 32px 0;
    color: #fff;
    background: #222;
    font-size: 14px;
}

.tenant-footer .footer-link {
    gap: 12px;
    font-size: 15px;
    text-align: center;
    border-bottom: #444 solid 1px;
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.tenant-footer .footer-link a {
    color: #ccc;
}

.tenant-footer .footer-link a:hover {
    color: #fff;
}

.tenant-footer .footer-link .f_bar {
    margin: 0 10px;
    font-size: 12px;
    color: #555;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #444;
}

.footer-col {
    display: grid;
    gap: 8px;
    padding-right: 16px;
    border-right: 1px solid #444;
}

.footer-col:last-child {
    border-right: 0;
    padding-right: 0;
}

.footer-title {
    color: #ddd;
    font-weight: 600;
    font-size: 16px;
}

.footer-tel {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
}

.footer-hours,
.footer-bank-list,
.footer-biz-list {
    display: grid;
    gap: 4px;
    color: #aaa;
    font-size: 14px;
    line-height: 1;
}

.footer-bank-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.footer-bank-row .bank-name {
    color: #ccc;
    font-weight: 600;
}

.footer-bank-holder {
    color: #ccc;
    font-size: 15px;
}

.footer-bank-btn {
    width: fit-content;
    padding: 6px 12px 0px 12px !important;
    height: 36px;
    border-radius: 4px;
    border: 1px solid #666;
    background: #444;
    color: #fff;
    font-size: 15px;
}

.footer-bank-btn:hover {
    color: #9fceff;
}

.footer-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.footer-more {
    color: #aaa;
    font-size: 12px;
}

.footer-notice-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    height: 22px;
    overflow: hidden;
}

.footer-notice-item a {
    color: #ccc;
}

.footer-notice-item a:hover {
    color: #fff;
}

.footer-notice-item span {
    color: #aaa;
    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: #aaa;
    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: #4973a1;
}

.footer-copy {
    color: #888;
    font-size: 12px;
}

.footer-escrow {
    border-left: 1px solid #555;
    padding-left: 16px;
    display: grid;
    gap: 8px;
}

.footer-escrow-title {
    color: #999;
    font-weight: 600;
    font-size: 16px;
}

.footer-escrow-text {
    color: #6b7280;
    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 #666;
    background: #444;
    color: #fff;
    font-size: 12px;
}

.footer-escrow-btn:hover {
    color: #9fceff;
}

.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: #4b5563;
    line-height: 1.6;
}

.tenant-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    background: #ffffff;
}

.tenant-kv {
    font-size: 24px;
    font-weight: 600;
}

.tenant-meta {
    margin-top: 8px;
    color: #4b5563;
}

.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: #6b7280;
}

.tenant-board-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tenant-board-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    background: #ffffff;
    color: #374151;
}

.tenant-board-card .title {
    font-weight: 600;
    margin-bottom: 6px;
}

.tenant-board-card .desc {
    color: #6b7280;
    font-size: 14px;
}

h1 {
    margin: 16px 0 12px;
    font-size: 32px;
}

h2 {
    margin: 12px 0 10px;
    font-size: 20px;
}

/* Modules */
.module {
    margin: 0px 0;
}

.tenant-content .tenant-wrap>.module-main-slide:first-child {
    margin-top: 0;
}

.module-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.module-head h3 {
    font-size: 30px;
    font-weight: 500 !important;
    color: #444;
    margin: 32px 0 50px 0;
}

.module-head h3::before {
    content: '';
    position: absolute;
    left: 49%;
    top: 85px;
    width: 35px;
    height: 2px;
    background-color: #999;
}

.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,
.module-products-mosaic .module-head h3 {
    font-size: 32px;
}

/* 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: #f9fafb;
}

.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: 0px;
    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;
}

.module-products .product-thumb {
    background: #f9fafb;
    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: 600;
    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: #6b7280;
    font-size: 13px;
    text-decoration: line-through;
}

.module-products .product-price-sale {
    color: #4570d1;
    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 #e5e7eb;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.board-card-thumb {
    aspect-ratio: 16 / 9;
    background: #f9fafb;
    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;
    line-height: 26px !important;
    overflow: hidden;
    margin-bottom: 10px;
}

.board-card-excerpt {
    font-size: 15px !important;
    color: #6b7280;
    line-height: 22px;
    height: 64px;
    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 #e5e7eb;
    background: #ffffff;
    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: #6b7280;
    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: 26px;
        font-weight: 600;
    }

    .board-card-body {
        padding: 12px 0px 16px 0px !important;
    }
}

/* Shop list */
.shop-page {
    padding-top: 10px;
}

.shop-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #e5e7eb;
    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: #333;
}

.shop-header h2::before {
    content: '';
    position: absolute;
    left: 43%;
    bottom: 4px;
    width: 35px;
    height: 2px;
    background-color: #999;
}

.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 #d1d5db;
    color: #333;
    letter-spacing: -1px;
    font-weight: 500;
    font-size: 16px;
}

.shop-filter.is-active {
    border-color: #7d9dd8;
    font-weight: 600;
    color: #4570d1;
}

/* Customer center */
.customer-page {
    padding-top: 10px;
}

.cs-header h2 {
    position: relative;
    text-align: center;
    font-size: 32px !important;
    font-weight: 500;
    letter-spacing: -1px;
    padding: 12px 0;
    margin-bottom: 26px;
    color: #333;
}

.cs-header h2::before {
    content: '';
    position: absolute;
    left: 49%;
    bottom: 0px;
    width: 30px;
    height: 2px;
    background-color: #999;
}

.cs-header-line {
    color: #ccc;
}

.cs-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: start;
}

.cs-sidebar {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px;
}

.cs-menu-list {
    display: grid;
    gap: 8px;
}

.cs-menu-item {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #f1f1f1;
    color: #444;
    letter-spacing: -1px;
    font-weight: 500;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
}

.cs-menu-item.is-active {
    border-color: #6d99c6;
    color: #3f76ac;
    font-weight: 600;
}

.cs-content {
    min-width: 0;
    min-height: 150px;
}

.cs-panel {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    padding: 20px;
    display: none;
    min-height: 700px;
}

.cs-panel.is-active {
    display: block;
}

.cs-faqs {
    display: grid;
    gap: 10px;
}

.cs-faq {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    padding: 10px 12px;
}

.cs-faq summary {
    cursor: pointer;
    color: #374151;
    font-weight: 600;
}

.cs-faq-body {
    margin-top: 8px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}

.cs-detail {
    border-top: 1px solid #e5e7eb;
    margin-top: 16px;
    padding-top: 16px;
}

.cs-detail-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.cs-detail-title {
    color: #f90000;
    font-size: 20px;
    font-weight: 600;
    padding: 20px 0 0 18px;
}

.cs-detail-date {
    color: #6b7280;
    font-size: 13px;
    white-space: nowrap;
}

.cs-detail-body {
    color: #222;
    font-size: 14px;
    padding: 10px 18px;
    line-height: 1.7;
}

.cs-detail-body img,
.cs-detail-body table {
    max-width: 100%;
}

.cs-policy {
    color: #333;
    font-size: 15px;
    line-height: 2;
}

.cs-policy img,
.cs-policy table {
    max-width: 100%;
}

.cs-section-title {
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
}

.cs-section-sub {
    text-align: center;
    margin-bottom: 16px;
    color: #999;
}

.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 #e5e7eb;
    color: #374151;
}

.cs-list-date {
    color: #6b7280;
    font-size: 13px;
    white-space: nowrap;
}

.cs-empty {
    text-align: center;
    color: #6b7280;
    padding: 16px 0;
}

/* Mypage */
.mypage-page .cs-content {
    display: grid;
    gap: 16px;
}

.cs-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    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: #6b7280;
    font-size: 13px;
}

.cs-card-value {
    color: #374151;
    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;
}

.customer-page,
.cs-layout,
.cs-content,
.cs-header {
    max-width: 100%;
}

.cs-stat {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    padding: 14px;
    text-align: center;
}

.cs-stat-title {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 6px;
}

.cs-stat-value {
    color: #374151;
    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: #6b7280;
    font-size: 13px;
    margin-bottom: 6px;
}

.cs-input,
.cs-textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #374151;
    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 #d1d5db;
    background: #ffffff;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.cs-button-primary {
    background: #2f4a7a;
    border-color: #2f4a7a;
    color: #fff;
}

.cs-form-actions {
    display: flex;
    justify-content: flex-end;
}

.cs-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 12px;
}

.tm-filter {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.tm-filter-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
}

.tm-range-sep {
    color: #6b7280;
}

.tm-search-btn {
    padding: 8px 14px;
}

@media (max-width: 700px) {

    body,
    .tenant-site,
    .tenant-content {
        max-width: 100%;
        overflow-x: hidden;
    }

    .customer-page,
    .cs-layout,
    .cs-content,
    .cs-header,
    .cs-section-title,
    .tm-filter,
    .tm-filter-row {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .cs-stats {
        grid-template-columns: 1fr;
    }

    .tm-filter-row {
        flex-wrap: wrap;
    }

    .tm-scroll .cs-table {
        min-width: 760px;
    }

    .mypage-page .cs-content {
        display: inline-block;
        gap: 16px;
    }

}

.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: #ffffff;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 13px;
}

.cs-table-row {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    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));
}

.tm-orders-table .cs-table-head,
.tm-orders-table .cs-table-row {
    grid-template-columns: 1.3fr 2fr 0.6fr 0.9fr 0.8fr 0.8fr 0.9fr 0.8fr 0.8fr 1fr 0.8fr;
}

.tm-fees-table .cs-table-head,
.tm-fees-table .cs-table-row {
    grid-template-columns: 1.2fr 1.4fr 2fr 0.7fr 0.9fr 0.9fr 0.9fr;
}

.tm-members-table .cs-table-head,
.tm-members-table .cs-table-row {
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr 0.7fr;
}

.tm-member-detail {
    margin-bottom: 16px;
}

.tm-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.tm-scroll .cs-table {
    min-width: 920px;
}

.cs-stats {
    max-width: 100%;
}

@media (max-width: 700px) {

    .cs-content,
    .cs-card,
    .cs-stats,
    .cs-table,
    .tm-scroll {
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
}

.cs-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.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 #d1d5db;
    padding: 6px 12px;
    border-radius: 6px;
    color: #c0cadc;
    font-size: 14px;
}

.cs-page-info {
    color: #6b7280;
    font-size: 13px;
}

.cs-summary {
    text-align: right;
    color: #c0cadc;
    margin-top: 10px;
}

.cs-subtext {
    text-align: center;
    color: #6b7280;
    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 #e5e7eb;
    background: #f9fafb;
    overflow: hidden;
    padding: 10px;
}

.cs-youtube-thumb {
    position: relative;
    padding-top: 56.25%;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
}

.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: #374151;
}

.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 #d1d5db;
    background: transparent;
    color: #444;
    letter-spacing: -1px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.cs-filter-btn.is-active {
    border-color: #528eca;
    color: #2871ba;
    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: #6b7280;
    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 #e5e7eb;
    background: #f9fafb;
}

.cs-audio-meta {
    display: grid;
    gap: 4px;
}

.cs-audio-name {
    color: #374151;
    font-size: 14px;
}

.cs-audio-board {
    color: #6b7280;
    font-size: 12px;
}

.cs-audio-play {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    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 #e5e7eb;
    background: #ffffff;
    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: #f9fafb;
    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: #374151;
    margin-bottom: 8px;
}

.shop-prices {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.shop-price-market {
    color: #6b7280;
    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: #6b7280;
    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 #ccc;
    padding: 6px 12px;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
    min-width: 36px;
    text-align: center;
}

.shop-pagination .page-btn.is-active {
    border-color: #6681bf;
    color: #6681bf;
    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 !important;
        gap: 8px;
        flex-wrap: nowrap;
        padding-bottom: 6px;
    }

    .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 #e5e7eb;
    background: #ffffff;
    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 #e5e7eb;
    background: #ffffff;
    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: #6b7280;
    font-size: 14px;
}

.product-title {
    font-size: 26px;
    font-weight: 600;
    margin: 0;
}

.product-short {
    color: #4b5563;
    line-height: 22px;
}

.product-prices {
    padding: 0px;
    display: grid;
}

.product-info {
    display: grid;
    padding: 0px 0;
}

.product-info-row {
    display: flex;
    justify-content: space-between;
    color: #4b5563;
    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: #4b5563;
    font-size: 14px;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 4px 6px;
    background: #f9fafb;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    border-radius: 4px;
    cursor: pointer;
}

.qty-input {
    width: 60px;
    text-align: center;
    border: 0;
    background: transparent;
    color: #374151;
    font-size: 14px;
}

.product-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
    font-size: 16px;
    color: #374151;
}

.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 #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    background: #ffffff;
}

.cart-thumb img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.cart-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.cart-meta {
    color: #6b7280;
    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 #d1d5db;
    background: #f9fafb;
    color: #374151;
    text-align: center;
}

.cart-btn {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    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 #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    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 #e5e7eb;
    background: #ffffff;
    padding: 10px 12px;
    color: #4b5563;
    font-size: 13px;
}

.checkout-table {
    border: 1px solid #e5e7eb;
    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 #e5e7eb;
    background: #f9fafb;
}

.checkout-row.header {
    background: #ffffff;
    font-weight: 600;
}

.checkout-row img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.checkout-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.summary-block {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    background: #ffffff;
}

.summary-block h3 {
    margin: 0 0 10px;
    font-size: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: #4b5563;
    font-size: 14px;
}

.summary-row.total {
    border-top: 1px solid #e5e7eb;
    margin-top: 6px;
    padding-top: 10px;
    font-weight: 700;
    color: #ff4d4f;
}

.checkout-section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    background: #ffffff;
}

.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 #d1d5db;
    background: #f9fafb;
    color: #374151;
    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 #d1d5db;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
}

.pay-methods {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ship-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: #4b5563;
    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: #4b5563;
    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: #4b5563;
    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;
    }
}

/* Recent viewed widget */
.recent-box {
    position: fixed;
    right: 30px;
    top: 120px;
    width: 100px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    z-index: 60;
    overflow: hidden;
}

.recent-head {
    background: #d1d5db;
    color: #374151;
    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 #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    background: #f9fafb;
}

.recent-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    display: block;
}

.recent-empty {
    color: #6b7280;
    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 #d1d5db;
    background: #f9fafb;
    color: #374151;
    border-radius: 4px;
    cursor: pointer;
}

.recent-page {
    font-size: 12px;
    color: #6b7280;
}

.recent-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    background: #d1d5db;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
    border-top: 1px solid #e5e7eb;
}

.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: #6b7280;
    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 #d1d5db;
    background: #ffffff;
    color: #374151;
    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: #6b7280;
    font-size: 13px;
}

.product-share-buttons {
    display: flex;
    gap: 6px;
}

.product-share-buttons button {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    font-size: 12px;
}

.product-tabs {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid #ccc;
}

.product-tab {
    padding: 12px;
    background: #f1f1f1;
    color: #4b5563;
    border: 1px solid #ddd;
    border-bottom: none;
    cursor: pointer;
    font-size: 14px;
}

.product-tab.is-active {
    background: #444;
    color: #fff;
    border-color: #444;
}

.product-tab-panel {
    display: none;
    padding: 20px 10px;
    border-top: #ccc solid 1px;
}

.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 #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    background: #ffffff;
}

/* 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: #f9fafb;
    border: 1px solid #e5e7eb;
    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: #374151;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.review-field {
    display: grid;
    gap: 6px;
}

.review-field label {
    color: #4b5563;
    font-size: 13px;
}

.review-field input[type="text"],
.review-field input[type="password"],
.review-field textarea {
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #374151;
    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 #e5e7eb;
    display: grid;
    gap: 10px;
}

.review-reply {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    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: #6b7280;
    cursor: pointer;
    font-size: 13px;
}

.review-edit {
    margin-top: 10px;
    border-top: 1px dashed #d1d5db;
    padding-top: 10px;
    display: grid;
    gap: 10px;
}

.qna-wrap {
    display: grid;
    gap: 24px;
}

.qna-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    background: #ffffff;
    display: grid;
    gap: 8px;
}

.qna-head {
    display: flex;
    gap: 10px;
    align-items: center;
}

.qna-name {
    color: #374151;
    font-weight: 600;
}

.qna-date {
    color: #6b7280;
    font-size: 12px;
}

.qna-content {
    color: #4b5563;
    line-height: 1.5;
}

.qna-replies {
    margin-top: 8px;
    padding-left: 16px;
    border-left: 2px solid #e5e7eb;
    display: grid;
    gap: 8px;
}

.qna-reply {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px;
}

.hidden {
    display: none;
}

.review-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.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: #e5e7eb;
    color: #4b5563;
    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: #374151;
    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: #6b7280;
    font-size: 12px;
}

.review-content {
    color: #4b5563;
    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 #e5e7eb;
}

.review-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.review-page-link {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    color: #6b7280;
    font-size: 13px;
}

.review-page-link.is-active {
    border-color: #374151;
    color: #374151;
}

.product-empty {
    color: #6b7280;
    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: repeat(3, minmax(0, 1fr));
    }

    .product-tabs {
        padding: 0px 15px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-tab {
        padding: 12px;
        background: #fff;
        color: #444;
        border: 1px solid #ddd;
        border-bottom: none;
        cursor: pointer;
        font-size: 14px;
    }

    .product-tab.is-active {
        background: #555;
        color: #fff;
        border-color: #555;
    }
}

@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-title {
        font-size: 17px;
        font-weight: 600;
        height: 28px;
        overflow: hidden;
        margin-bottom: 10px;
    }

    .tenant-header .tenant-wrap {
        height: auto;
        padding: 0px 10px;
    }

    .tenant-nav,
    .tenant-auth {
        display: none;
    }

    .tenant-wrap {
        max-width: 100%;
        margin: 0 auto;
        padding: 0px 12px !important;
    }

    .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: 0px solid #e5e7eb;
        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: 0px solid #e5e7eb;
        padding-top: 14px;
    }

    .tenant-notify-mobile {
        margin-top: -4px !important;
    }

    .footer-top {
        text-align: center;
    }

    .footer-tel {
        margin-top: -12px;
    }

    .footer-bank {
        margin-top: -20px;
    }

    .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 #666;
        background: #333;
        color: #aaa;
        font-size: 13px;
    }

    .footer-hours {
        display: none;
    }

    .footer-notice {
        display: none;
    }

    .footer-escrow {
        display: none;
    }

    .footer-biz-line {
        display: inline-block;
        text-align: center !important;
    }

    .footer-biz-line .fb_bar {
        margin: 0 6px;
        font-size: 12px;
        color: #666;
    }

    .fb_bar:nth-child(6),
    .fb_bar:nth-child(10) {
        display: none;
    }

    .footer-copy {
        text-align: center;
        margin-top: 12px;
    }

    .tenant-mobile-auth {
        border-top: #244065 solid 1px;
        padding-top: 4px;
    }

    .tenant-mobile-auth svg {
        width: 16px;
        height: 16px;
        color: #6aa6ff;
        margin-right: 4px;
    }

    .shop-header h2 {
        position: relative;
        font-size: 32px !important;
        font-weight: 600;
        letter-spacing: -1px;
        padding: 0px 0 20px 0;
        margin-bottom: 16px;
        color: #444;
    }

    .shop-header h2::before {
        content: '';
        position: absolute;
        left: 43%;
        bottom: 4px;
        width: 30px;
        height: 2px;
        background-color: #999;
    }

    .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 #d1d5db;
        color: #333;
        letter-spacing: -1px;
        font-weight: 500;
        font-size: 15px;
    }

    .shop-filter.is-active {
        border-color: #7d9dd8;
        font-weight: 600;
        color: #4570d1;
    }

    .product-detail-content img {
        max-width: 100%;
        width: 100% !important;
        height: auto;
        object-fit: contain;
        display: block;
    }
}

/* Mall Modern Gray Template Styles (Premium Pass) */
:root {
    --bg-primary: #f8f9fa;
    --bg-surface: #ffffff;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --accent-color: #495057;
    --accent-light: #e9ecef;
    --border-color: #dee2e6;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Pretendard", "Noto Sans KR", sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Tenant site layout */
.tenant-site {
    background: var(--bg-primary);
}

.tenant-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.tenant-header {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid #ccc !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    transition: var(--transition);
}

.tenant-header .tenant-wrap {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tenant-brand {
    font-size: 28px;
    font-weight: 800;
    color: #000 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tenant-brand svg {
    color: var(--accent-color);
}

.tenant-nav {
    display: flex;
    gap: 36px;
    flex: 1;
    margin-left: 40px;
}

.tenant-nav a {
    font-weight: 600;
    font-size: 18px;
    color: #444;
}

.tenant-nav a:hover {
    color: #000;
    transform: translateY(-1px);
}

/* Premium Product Cards */
.module-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--bg-surface);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #ddd;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-thumb {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f1f3f5;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-thumb img {
    transform: scale(1.08);
}

.product-info {
    padding: 24px;
    text-align: left;
}

.product-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
}

.product-price-sale {
    font-size: 20px;
    font-weight: 800;
    color: #000;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.module {
    animation: fadeInUp 0.8s ease backwards;
}

/* Mobile Optimization */
@media (max-width: 991px) {
    .tenant-header .tenant-wrap {
        height: 64px;
        gap: 5px;
        justify-content: space-between;
    }

    .tenant-nav,
    .tenant-auth {
        display: none !important;
    }

    .tenant-hamburger {
        display: inline-flex !important;
        background: none;
        padding: 5px;
        border: none;
        color: #000;
        cursor: pointer;
    }

    .tenant-brand {
        font-size: 26px;
        color: #444;
    }

    .tenant-brand svg {
        width: 28px;
        height: 28px;
        color: #3b67cf;
        margin-top: 4px;
        margin-right: -2px;
    }

    .module-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-info {
        padding: 16px;
    }

    .product-summary {
        padding: 0px 15px;
    }

    .product-title {
        font-size: 20px;
        font-weight: 600;
        padding: 0px;
        letter-spacing: -1px;
    }

    .product-short {
        color: #4b5563;
        line-height: 22px;
        padding: 0px;
        font-size: 14px;
        margin: 0px;
    }

    .product-prices {
        padding: 0px;
    }
}

.tenant-mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    /* 모바일 헤더 높이에 맞춤 */
    right: 0px;
    width: 280px;
    /* 적절한 레이어 너비 */
    background: #444;
    z-index: 1000 !important;
    flex-direction: column;
    padding: 12px 16px;
    gap: 6px;
}

.tenant-mobile-nav.is-active {
    display: flex !important;
}

.tenant-mobile-nav a {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    padding: 6px 8px;
    border-bottom: 1px solid #666;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tenant-mobile-nav a:last-child {
    border-bottom: none;
}

.tenant-mobile-nav a:nth-last-child(2) {
    border-bottom: none;
}

.tenant-mobile-auth {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Item Delay Classes */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Product Card Hover Zoom */
.product-card .product-thumb img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-thumb img {
    transform: scale(1.1) rotate(1deg) !important;
}

/* Products Mosaic Layout */
.module-products-mosaic .products-mosaic-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr !important;
    gap: 15px !important;
    margin-bottom: 0px;
}

.module-products-mosaic .mosaic-item {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 1 / 1;
    width: 100%;
}

.module-products-mosaic .mosaic-item-large {
    grid-column: 1 / span 1 !important;
    grid-row: 1 / span 2 !important;
    aspect-ratio: auto !important;
}

.module-products-mosaic .mosaic-thumb {
    width: 100%;
    height: 100%;
    position: relative;
    background: #f9fafb;
    border: #ddd solid 1px;
}

.module-products-mosaic .mosaic-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.module-products-mosaic .mosaic-item:hover .mosaic-thumb img {
    transform: scale(1.05);
    border: #ddd solid 1px;
}

.module-products-mosaic .mosaic-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.module-products-mosaic .mosaic-item:hover .mosaic-overlay {
    opacity: 1;
    border: #ddd solid 1px;
}

.module-products-mosaic .mosaic-info {
    color: #111;
}

.module-products-mosaic .mosaic-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.4;
    word-break: keep-all;
}

.module-products-mosaic .mosaic-prices {
    font-size: 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.module-products-mosaic .mosaic-price-market {
    color: #999;
    text-decoration: line-through;
    font-size: 13px;
}

.module-products-mosaic .mosaic-price-sale {
    color: #3b67cf;
    font-weight: 600;
}

.module-products-mosaic .module-head h3 {
    text-align: center !important;
    margin: 30px auto 50px auto !important;
}

.module-products-mosaic .module-head h3::before {
    content: '';
    position: absolute;
    left: 49%;
    top: 85px;
    width: 35px;
    height: 2px;
    background-color: #999;
}

/* Global Mobile Styles for other modules */
@media (max-width: 768px) {

    .tenant-user-info {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #ccc !important;
        font-weight: 500 !important;
        font-size: 13px;
        margin-top: -16px;
        margin-bottom: 12px;
    }

    .module-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .board-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .module-products-mosaic .products-mosaic-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .module-products-mosaic .mosaic-item {
        aspect-ratio: 1 / 1;
    }

    .module-products-mosaic .mosaic-item-large {
        flex: 0 0 100% !important;
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
    }

    .module-products-mosaic .mosaic-item-small {
        display: none !important;
        flex: 0 0 calc(50% - 5px) !important;
    }

    .module-products-mosaic .mosaic-item-small:nth-child(2),
    .module-products-mosaic .mosaic-item-small:nth-child(3) {
        display: block !important;
    }

    .module-products-mosaic .module-head h3 {
        text-align: center !important;
        font-size: 26px;
        margin: 30px auto 45px auto !important;
    }

    .module-products-mosaic .module-head h3::before {
        content: '';
        position: absolute;
        left: 48%;
        top: 82px;
        width: 35px;
        height: 2px;
        background-color: #999;
    }

}


/* Board Slider Wide */
.module-board-slider-wide {
    background-color: #efefef;
    padding: 60px 0;
    margin: 60px 0 20px 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.board-slider-container {
    position: relative;
    overflow: hidden;
}

.board-slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.board-slider-item {
    flex: 0 0 100%;
    width: 100%;
}

.board-slider-link {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 10px;
}

.board-slider-thumb {
    flex: 0 0 45%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.thumb-aspect {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
}

.board-slider-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.board-slider-link:hover .board-slider-thumb img {
    transform: scale(1.05);
}

.board-slider-thumb .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(230, 33, 23, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 2;
}

.board-slider-thumb .play-icon svg {
    width: 30px;
    height: 30px;
    margin-left: 4px;
}

.board-slider-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.board-slider-label {
    display: inline-block;
    padding: 4px 12px;
    background: #333;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    width: fit-content;
    border-radius: 2px;
}

.board-slider-title {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    letter-spacing: -1px;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.board-slider-excerpt {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.board-slider-meta {
    margin-top: 5px;
    font-size: 14px;
    color: #999;
}

.board-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.board-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s;
}

.board-slider-dot.active {
    width: 24px;
    border-radius: 4px;
    background: #333;
}

@media (max-width: 1024px) {
    .board-slider-thumb {
        flex: 0 0 50%;
    }
}

@media (max-width: 768px) {
    .module-board-slider-wide {
        padding: 40px 0;
    }

    .board-slider-link {
        flex-direction: column;
        gap: 20px;
    }

    .board-slider-thumb {
        flex: 0 0 auto;
        width: 100%;
    }

    .board-slider-content {
        padding: 0 10px;
    }

    .board-slider-title {
        font-size: 22px;
    }

    .board-slider-excerpt {
        font-size: 14px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

/* ========================================
   Manager Page / Customer Page Styles
   ======================================== */

/* Customer/Manager Page Layout */
.customer-page,
.mypage-page {
    padding: 20px 0 40px;
}

.cs-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.cs-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.cs-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: start;
}

/* Sidebar Navigation */
.cs-sidebar {
    position: sticky;
    top: 90px;
}

.cs-menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cs-menu-item {
    width: 100%;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.cs-menu-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.cs-menu-item.is-active {
    background: #3b67cf;
    color: #ffffff;
    border-color: #3b67cf;
    font-weight: 600;
}

/* Content Area */
.cs-content {
    min-width: 0;
}

.cs-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
}

/* Dashboard Stats */
.cs-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.cs-stat {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.cs-stat-title {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
    font-weight: 500;
}

.cs-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #111;
}

/* Panels */
.cs-panel {
    display: none;
}

.cs-panel.is-active {
    display: block;
}

/* Filter Form - Desktop Defaults */
.tm-filter {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.tm-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tm-group-dates {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tm-group-ranges {
    display: flex;
    gap: 4px;
}

.tm-date-input {
    width: 140px;
    min-width: 0;
    padding: 10px 12px 10px 24px;
    background-position: right 16px center;
    font-size: 14px;
}

.tm-range-sep {
    color: #9ca3af;
    font-weight: 500;
}

.cs-filter-btn {
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cs-filter-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.cs-button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cs-button-primary {
    background: #3b67cf;
    color: #ffffff;
}

.cs-button-primary:hover {
    background: #2f54b8;
}

.tm-search-btn {
    margin-left: auto;
}

/* Table Styles */
.tm-scroll {
    overflow-x: auto;
    margin: 0 -4px;
    padding: 0 4px;
}

.cs-table {
    width: 100%;
    min-width: 800px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.cs-table-head {
    display: grid;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    padding: 14px 16px;
}

.cs-table-row {
    display: grid;
    border-bottom: 1px solid #f3f4f6;
    padding: 14px 16px;
    font-size: 14px;
    color: #4b5563;
    transition: background 0.2s;
}

.cs-table-row:hover {
    background: #f9fafb;
}

.cs-table-row:last-child {
    border-bottom: none;
}

/* Orders Table */
.tm-orders-table .cs-table-head,
.tm-orders-table .cs-table-row {
    grid-template-columns: 130px 1fr 70px 90px 80px 80px 90px 100px 100px 100px 90px;
    gap: 12px;
}

/* Fees Table */
.tm-fees-table .cs-table-head,
.tm-fees-table .cs-table-row {
    grid-template-columns: 130px 120px 1fr 70px 100px 90px 90px;
    gap: 12px;
}

/* Members Table */
.tm-members-table .cs-table-head,
.tm-members-table .cs-table-row {
    grid-template-columns: 110px 120px 150px 130px 80px;
    gap: 12px;
}

.cs-table-head>div,
.cs-table-row>div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Empty State */
.cs-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    font-size: 15px;
}

/* Pagination */
.cs-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.cs-page-btn {
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.cs-page-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111;
}

.cs-page-info {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Member Detail Card */
.cs-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.tm-member-detail {
    max-width: 600px;
}

.cs-card-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.cs-card-row:last-child {
    border-bottom: none;
}

.cs-card-label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.cs-card-value {
    color: #4b5563;
    font-size: 14px;
}

.cs-link {
    color: #3b67cf;
    text-decoration: none;
    font-weight: 500;
}

.cs-link:hover {
    text-decoration: underline;
}

/* ========================================
   Tablet Responsive (768px - 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .cs-layout {
        grid-template-columns: 180px 1fr;
        gap: 24px;
    }

    .cs-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cs-stat {
        padding: 16px;
    }

    .cs-stat-value {
        font-size: 20px;
    }
}

/* ========================================
   Mobile Responsive (< 768px)
   ======================================== */
@media (max-width: 768px) {

    .customer-page,
    .mypage-page {
        padding: 16px 0 32px;
        overflow-x: hidden;
    }

    .cs-header {
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .cs-header h2 {
        font-size: 22px;
    }

    /* Mobile: Sidebar becomes horizontal tabs */
    .cs-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Mobile Sidebar - Horizontal Scrollable Tabs */
    .cs-sidebar {
        width: 100%;
        /* Fallback */
        width: calc(100% + 40px);
        /* Extend beyond parent padding */
        margin-left: -12px;
        margin-right: -20px;
        padding: 0 20px;
        /* Restore padding visually */
        overflow-x: auto;
        background: #ffffff;
        border: none;
        border-bottom: 1px solid #f3f4f6;
        border-radius: 0;
        position: sticky;
        top: 71px;
        /* Adjust based on header height */
        z-index: 40;
        /* Hide scrollbar */
        -ms-overflow-style: none;
        /* IE and Edge */
        scrollbar-width: none;
        /* Firefox */
        display: block;
        /* Ensure it is block */
    }

    .cs-sidebar::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Opera */
    }

    .cs-menu-list {
        display: flex;
        flex-direction: row;
        gap: 6px;
        padding: 10px 0;
        width: max-content;
        /* Allow content to dictate width */
    }

    .cs-menu-item {
        width: auto;
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 4px;
        background: #f3f4f6;
        border: 1px solid #e5e7eb;
        text-align: center;
    }

    .cs-menu-item.is-active {
        background: #3b67cf;
        color: #ffffff;
        border-color: #3b67cf;
        font-weight: 600;
    }

    .tenant-manager-link-mobile {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 6px 10px;
        border-radius: 6px;
        background: #2f4a7a;
        color: #fff;
        font-size: 12px;
        margin: -12px 0 12px 12px !important;
        text-decoration: none;
        white-space: nowrap;
    }

    .tenant-user-info .tenant-user-name {
        color: #ddd;
        font-weight: 500;
    }

    /* Dashboard Stats - 2 columns on mobile */
    .cs-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 24px;
        width: 100%;
        box-sizing: border-box;
    }

    .cs-stat {
        padding: 14px 12px;
        min-width: 0;
        /* Prevent overflow */
    }

    .cs-stat-title {
        font-size: 12px;
        margin-bottom: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cs-stat-value {
        font-size: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cs-section-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    /* Filter Form - Mobile Optimized */
    .tm-filter {
        padding: 16px 12px;
        margin-bottom: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .tm-date-input {
        width: 140px !important;
        min-width: 0;
        padding: 10px 12px 10px 24px;
        background-position: right 6px center;
        font-size: 14px;
    }

    .tm-group-ranges {
        display: flex;
        width: 100%;
        gap: 6px;
        justify-content: space-between;
    }

    .cs-filter-btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 10px 4px;
        font-size: 13px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }

    .tm-search-btn {
        width: 100%;
        margin-left: 0;
        margin-top: 4px;
    }

    /* Mobile Table - Card Layout */
    .tm-scroll {
        width: 100%;
        overflow: hidden;
        /* Hide horizontal scroll */
        margin: 0;
        padding: 0;
    }

    .cs-table {
        width: 100%;
        min-width: 0;
        border: none;
        background: transparent;
    }

    .cs-table-head {
        display: none;
    }

    .cs-table-row {
        display: block;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .cs-table-row:hover {
        background: #ffffff;
    }

    .cs-table-row>div {
        display: grid;
        grid-template-columns: 80px 1fr;
        /* Reduced label width to prevent overflow */
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px solid #f3f4f6;
        white-space: normal;
        word-break: break-all;
        /* Force break for long words */
        overflow-wrap: break-word;
    }

    .cs-table-row>div:last-child {
        border-bottom: none;
    }

    .cs-table-row>div::before {
        content: attr(data-label);
        font-weight: 600;
        color: #374151;
        font-size: 13px;
        word-break: keep-all;
    }

    /* Pagination - Mobile */
    .cs-pagination {
        gap: 10px;
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .cs-page-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .cs-page-info {
        font-size: 13px;
    }

    /* Member Detail Card - Mobile */
    .cs-card {
        padding: 16px;
        margin-bottom: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .cs-card-row {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 10px 0;
    }

    .cs-card-label {
        font-size: 13px;
        color: #6b7280;
    }

    .cs-card-value {
        font-size: 15px;
        font-weight: 500;
        color: #111;
        word-break: break-all;
    }

    /* Empty State */
    .cs-empty {
        padding: 40px 20px;
        font-size: 14px;
    }
}

/* ========================================
   Small Mobile (< 480px)
   ======================================== */
@media (max-width: 480px) {
    .cs-header h2 {
        font-size: 20px;
    }

    .cs-menu-item {
        font-size: 15px;
        width: fit-content;
        padding: 6px 14px;
    }

    /* Dashboard Grid Adjustment for Small Screen */
    .cs-stats {
        gap: 8px;
    }

    .cs-stat {
        padding: 12px 10px;
    }


    .tm-group-ranges {
        gap: 4px;
    }

    .cs-filter-btn {
        font-size: 12px;
        padding: 8px 0;
    }

    .cs-table-row {
        padding: 14px;
    }

    .cs-table-row>div {
        grid-template-columns: 70px 1fr;
        gap: 10px;
        padding: 8px 0;
        font-size: 13px;
    }

    /* Enhanced Dashboard Profile Styles (2-Column Grid) */
    #mp-dashboard .cs-card {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    #mp-dashboard .cs-card-row {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 20px 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 8px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
        transition: all 0.2s ease;
        height: 100%;
    }

    #mp-dashboard .cs-card-row:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        border-color: #d1d5db;
    }

    /* Remove default border-bottom logic */
    #mp-dashboard .cs-card-row:last-child {
        border-bottom: 1px solid #e5e7eb;
    }

    #mp-dashboard .cs-card-label {
        font-size: 13px;
        color: #888;
        margin: 0;
        font-weight: 500;
    }

    #mp-dashboard .cs-card-value {
        font-size: 15px;
        color: #111;
        font-weight: 600;
        word-break: break-all;
    }

    #mp-dashboard .cs-profile-img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 50%;
        margin-bottom: 2px;
        border: 2px solid #f9fafb;
        box-shadow: 0 0 0 1px #e5e7eb;
    }

    /* Ensure no override on mobile affects our grid */
    @media (max-width: 768px) {
        #mp-dashboard .cs-card {
            padding: 0 !important;
            margin-bottom: 24px;
        }

        #mp-dashboard .cs-card-row {
            flex-direction: column;
            padding: 16px 10px;
            gap: 6px;
        }
    }