@charset "UTF-8";

/* =========================================================================
   Doran Doran Mall Common CSS (mall.css)
   도란도란 몰 통합 스타일
========================================================================= */

/* mall.jsp (Main Storefront) */
.mall-header {
  background: linear-gradient(135deg, #d3e0dc 0%, #f2f7f4 100%);
  color: #3b5249;
  padding: 4rem 0;
  margin-bottom: 2rem;
  border-radius: 0 0 2rem 2rem;
}
.mall-title {
  font-weight: 800;
  font-size: 2.5rem;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.1);
}

/* 모바일 뷰 최적화 (폭 767px 이하) */
@media (max-width: 767.98px) {
  .mall-quick-menu {
    position: static !important;
    margin-top: 2rem !important;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
    justify-content: center !important;
    flex-wrap: wrap;
    width: 100%;
  }
  .mall-quick-menu .btn {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.8rem !important;
  }
  .mall-main-title {
    font-size: 2rem !important;
  }
  .mall-main-subtitle {
    font-size: 1.1rem !important;
  }
}

.category-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  /* 모바일에서 항목이 넘칠 때 좌측이 짤리는 현상 방지하기 위해 center 제거 (기본값 flex-start) */
}
.category-nav::-webkit-scrollbar {
  display: none;
}
.cate-badge {
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
  white-space: nowrap;
  border-radius: 2rem;
  background: #fff;
  color: #495057;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #dee2e6;
  transition: all 0.2s;
}
.cate-badge:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
  color: #212529;
}
.cate-badge.active {
  background: #5b8a72;
  color: #fff;
  border-color: #5b8a72;
}
.product-card {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  color: inherit;
}
.product-img-wrap {
  width: 100%;
  padding-top: 100%;
  position: relative;
  background: #f8f9fa;
  overflow: hidden;
}
.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-info {
  padding: 1.2rem;
}
.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #3b5249;
}
.soldout-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.soldout-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: #333;
  transform: rotate(-15deg);
  border: 4px solid #333;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
}
.seller-links {
  margin-top: 3rem;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 1rem;
  text-align: center;
}

/* Custom Tooltip Styling */
.custom-tooltip {
  --bs-tooltip-bg: #eef4f1;
  --bs-tooltip-color: #2e473b;
  --bs-tooltip-opacity: 1;
}
.custom-tooltip .tooltip-inner {
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: none;
}

/* Seller Dashboard */
.seller-dashboard-bg {
  background-color: #f4f6f9;
}
.dashboard-container {
  max-width: 1000px;
  margin: 2rem auto;
}
.welcome-card {
  background: linear-gradient(135deg, #3b5249 0%, #5b8a72 100%);
  color: white;
  border-radius: 1rem;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}
.welcome-card::after {
  content: "\F54A";
  font-family: "bootstrap-icons";
  font-size: 15rem;
  position: absolute;
  right: -2rem;
  bottom: -4rem;
  opacity: 0.1;
  line-height: 1;
}
.status-badge {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}
.status-pending {
  background-color: #f7ebd3;
  color: #8c6b36;
}
.status-active {
  background-color: #d3e0dc;
  color: #3b5249;
}
.status-suspended {
  background-color: #e6cec8;
  color: #804a44;
}
.stat-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s;
}
.stat-card:hover {
  transform: translateY(-5px);
}
.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #0984e3;
}
.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 0.5rem;
}
.stat-label {
  color: #636e72;
  font-size: 0.95rem;
  font-weight: 500;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.menu-item {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  color: #2d3436;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.2s;
  border: 1px solid transparent;
}
.menu-item:hover {
  background: #f8f9fa;
  border-color: #dfe6e9;
  transform: translateY(-3px);
  color: #5b8a72;
}
.menu-item i {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
  color: #5b8a72;
  transition: color 0.2s;
}
.menu-item:hover i { color: #355e3b; }
.menu-item span {
  font-weight: 600;
}
.disabled-ui { opacity: 0.75; filter: grayscale(70%); pointer-events: none; }

/* =========================================================================
   Global Color Overrides (Softening standard Bootstrap colors for UX)
========================================================================= */
/* 빨간색(text-danger)을 부드러운 오렌지/벽돌색으로 보정 */
.text-danger {
  color: #c96b5a !important;
}
/* 파란색(text-primary)을 몰 메인 테마 색상(진녹색)으로 보정 */
.text-primary {
  color: #5b8a72 !important;
}
/* 하늘색(text-info)을 부드러운 그린톤으로 보정 */
.text-info {
  color: #799587 !important;
}

/* outline 버튼 텍스트와 보더 라인 부드러운 테마색 보정 */
.btn-outline-danger {
  color: #c96b5a !important;
  border-color: #c96b5a !important;
}
.btn-outline-danger:hover {
  background-color: #c96b5a !important;
  color: #fff !important;
}

.btn-outline-primary {
  color: #5b8a72 !important;
  border-color: #5b8a72 !important;
}
.btn-outline-primary:hover {
  background-color: #5b8a72 !important;
  color: #fff !important;
}

/* 채워진 버튼 원색 보정 */
.btn-danger {
  background-color: #c96b5a !important;
  border-color: #c96b5a !important;
  color: #fff !important;
}
.btn-danger:hover {
  background-color: #b55d4d !important;
  border-color: #b55d4d !important;
}

.btn-primary {
  background-color: #5b8a72 !important;
  border-color: #5b8a72 !important;
  color: #fff !important;
}
.btn-primary:hover {
  background-color: #4a725e !important;
  border-color: #4a725e !important;
}

/* Crisp Elegant Button Overrides */
.btn-success { background-color: #47825d !important; border-color: #47825d !important; color: #fff !important; }
.btn-success:hover { background-color: #366649 !important; border-color: #366649 !important; }
.btn-outline-success { color: #47825d !important; border-color: #47825d !important; }
.btn-outline-success:hover { background-color: #47825d !important; color: #fff !important; }

.btn-warning { background-color: #d98523 !important; border-color: #d98523 !important; color: #fff !important; }
.btn-warning:hover { background-color: #b36c19 !important; border-color: #b36c19 !important; }
.btn-outline-warning { color: #d98523 !important; border-color: #d98523 !important; }
.btn-outline-warning:hover { background-color: #d98523 !important; color: #fff !important; }

.btn-info { background-color: #3280a3 !important; border-color: #3280a3 !important; color: #fff !important; }
.btn-info:hover { background-color: #246280 !important; border-color: #246280 !important; }
.btn-outline-info { color: #3280a3 !important; border-color: #3280a3 !important; }
.btn-outline-info:hover { background-color: #3280a3 !important; color: #fff !important; }

.btn-secondary { background-color: #66747d !important; border-color: #66747d !important; color: #fff !important; }
.btn-secondary:hover { background-color: #4e5960 !important; border-color: #4e5960 !important; }
.btn-outline-secondary { color: #66747d !important; border-color: #66747d !important; }
.btn-outline-secondary:hover { background-color: #66747d !important; color: #fff !important; }

/* =========================================================================
   Global Layout Unification (Matching common.css 1240px limit)
========================================================================= */
/* max-width: 1240px !important; */
@media (min-width: 1200px) {
  .container {
    max-width: 1100px !important;
  }
}

/* =========================================================================
   Global Form Label & Required Indicator Overrides
========================================================================= */
.form-label {
  font-weight: 500 !important;
  font-size: 0.90rem !important;
  color: #333 !important;
  display: inline-block !important; /* 글자 크기만큼만 영역 차지 (flex 늘어짐 방지) */
  margin-bottom: 0.25rem !important;
}

.required::after {
  content: " *";
  color: #dc3545;
  font-weight: 900;
  margin-left: 0.1rem;
}




/* =========================================================
   CKEditor 읽기전용 표(Table) - 반응형 가로 스크롤
   대상: #detail (상품 상세 정보), #policy (교환/환불 정책)
   - 표가 화면에 들어오면 그냥 100%로 표시
   - 표가 화면보다 넓으면 figure.table 안에서만 좌우 스크롤
   - 화면 전체가 좌우로 밀리지 않도록 overflow-x:hidden
   ========================================================= */

/* 탭 컨테이너의 가로 스크롤 방지 (표만 움직이게) */
#detail,
#policy {
    overflow-x: hidden !important;
}

/* figure.table = 스크롤 컨테이너 */
#detail figure.table,
#detail .ck-content figure.table,
#policy figure.table,
#policy .ck-content figure.table {
    display: block !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* 스크롤바 시각적으로 숨김 */
#detail figure.table::-webkit-scrollbar,
#detail .ck-content figure.table::-webkit-scrollbar,
#policy figure.table::-webkit-scrollbar,
#policy .ck-content figure.table::-webkit-scrollbar {
    display: none !important;
}

/* 표: 모바일 구동 시에만 내용이 넓으면 컨테이너를 넘어가고, PC에서는 창크기에 맞춰 줄바꿈(width: 100%) 되도록 제한 */
@media (max-width: 768px) {
    #detail figure.table > table,
    #detail .ck-content table,
    #policy figure.table > table,
    #policy .ck-content table {
        min-width: max-content !important;
        max-width: none !important;
        table-layout: auto;
    }
	#detail table td,
	#detail table th,
	#policy table td,
	#policy table th {
	    word-break: keep-all;
	}
}

