@charset "utf-8";

/* ============================================
   TOTO-SHOP Custom Skin Styles
   Bootstrap 4 based / Responsive
   ============================================ */

/* --------------------------------------------
   1. Site Info Section
   -------------------------------------------- */
.ts-site-info .row {
	min-height: 200px;
}

.ts-site-image-wrap {
	overflow: hidden;
	background: #f8f9fa;
}

.ts-site-image {
	width: 100%;
	height: 100%;
	min-height: 200px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
}

.ts-site-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	min-height: 200px;
	max-height: 300px;
}

.ts-no-image {
	background: #f0f0f0;
	min-height: 200px;
}

.ts-site-name {
	font-size: 1.5rem;
	font-weight: 700;
	color: #222;
	margin: 0;
	line-height: 1.3;
}

.ts-rating-display {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.ts-rating-display .fa {
	font-size: 1.1rem;
}

.ts-rating-score {
	font-size: 1.2rem;
	color: #DE5533;
}

.ts-info-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ts-info-label {
	font-weight: 600;
	color: #555;
	font-size: 0.9rem;
	min-width: 90px;
}

.ts-info-label i {
	width: 18px;
	text-align: center;
	color: #999;
}

.ts-info-value {
	color: #333;
	font-size: 0.95rem;
}

.ts-site-link {
	color: #DE5533;
	text-decoration: none;
	word-break: break-all;
}

.ts-site-link:hover {
	color: #c14324;
	text-decoration: underline;
}

.ts-code-badge {
	background: #fff3cd;
	color: #856404;
	padding: 0.2rem 0.6rem;
	border-radius: 4px;
	font-size: 0.95rem;
	font-weight: 600;
	border: 1px solid #ffc107;
	letter-spacing: 1px;
}

.ts-copy-btn {
	font-size: 0.75rem;
	padding: 0.15rem 0.5rem;
	border-radius: 3px;
}

/* --------------------------------------------
   2. Info Buttons (Accordion / Modals)
   -------------------------------------------- */
.ts-info-btn {
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	color: #495057;
	font-weight: 600;
	font-size: 0.9rem;
	padding: 0.6rem 0.8rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	border-radius: 6px;
}

.ts-info-btn:hover {
	background: #DE5533;
	border-color: #DE5533;
	color: #fff;
}

.ts-info-btn:focus {
	box-shadow: 0 0 0 0.2rem rgba(222, 85, 51, 0.25);
}

.ts-info-btn .ts-chevron {
	transition: transform 0.3s ease;
	font-size: 0.75rem;
}

.ts-info-btn[aria-expanded="true"] .ts-chevron {
	transform: rotate(180deg);
}

.ts-accordion-body {
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 6px;
	font-size: 0.95rem;
	line-height: 1.7;
}

.ts-modal-header {
	background: #DE5533;
	color: #fff;
	border-bottom: none;
}

.ts-modal-header .close {
	color: #fff;
	opacity: 0.8;
}

.ts-modal-header .close:hover {
	opacity: 1;
}

/* --------------------------------------------
   3. Tab Section (Nav Tabs)
   -------------------------------------------- */
.ts-nav-tabs {
	border-bottom: 2px solid #dee2e6;
}

.ts-nav-tabs .nav-item {
	flex: 1;
	text-align: center;
}

.ts-nav-tabs .nav-link {
	color: #666;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0.8rem 1rem;
	border: none;
	border-bottom: 3px solid transparent;
	border-radius: 0;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.ts-nav-tabs .nav-link:hover {
	color: #DE5533;
	border-bottom-color: rgba(222, 85, 51, 0.3);
	background: transparent;
}

.ts-nav-tabs .nav-link.active {
	color: #DE5533;
	background: transparent;
	border-bottom-color: #DE5533;
	font-weight: 700;
}

.ts-nav-tabs .badge {
	font-size: 0.7rem;
	vertical-align: top;
}

.ts-tab-content {
	border: 1px solid #dee2e6;
	border-top: none;
	border-radius: 0 0 6px 6px;
	background: #fff;
	min-height: 200px;
}

.ts-tab-content > .tab-pane {
	padding: 0 1rem;
}

/* --------------------------------------------
   4. Recommend Slider
   -------------------------------------------- */
.ts-section-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #333;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #DE5533;
	display: inline-block;
}

.ts-recommend-slider {
	position: relative;
	overflow: hidden;
	padding: 0 2rem;
}

.ts-slider-track {
	display: flex;
	gap: 12px;
	transition: transform 0.3s ease;
	will-change: transform;
}

.ts-recommend-card {
	flex: 0 0 auto;
	width: 140px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #eee;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	background: #fff;
}

.ts-recommend-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ts-rec-thumb {
	width: 100%;
	height: 100px;
	overflow: hidden;
	background: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ts-rec-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ts-rec-no-img {
	color: #ccc;
	font-size: 1.5rem;
}

.ts-rec-name {
	padding: 0.5rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: #333;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ts-slider-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8rem;
	z-index: 2;
	transition: background 0.2s;
}

.ts-slider-btn:hover {
	background: rgba(222, 85, 51, 0.8);
}

.ts-slider-prev {
	left: 0;
}

.ts-slider-next {
	right: 0;
}

/* --------------------------------------------
   5. Review Summary
   -------------------------------------------- */
.ts-review-summary {
	background: #f8f9fa;
	border-radius: 8px;
	padding: 1.5rem;
	border: 1px solid #eee;
}

.ts-avg-rating-big {
	font-size: 3rem;
	font-weight: 800;
	color: #DE5533;
	line-height: 1;
}

.ts-avg-rating-big + .ts-stars-static .fa {
	font-size: 1.2rem;
}

.ts-rating-label {
	font-size: 0.8rem;
	color: #666;
	min-width: 28px;
	text-align: right;
}

.ts-rating-bar {
	height: 8px;
	border-radius: 4px;
	background: #e9ecef;
}

.ts-rating-bar .progress-bar {
	border-radius: 4px;
}

.ts-rating-count {
	font-size: 0.8rem;
	color: #666;
	min-width: 24px;
	text-align: right;
}

.ts-write-review-btn {
	background: #DE5533;
	border-color: #DE5533;
	font-weight: 600;
	padding: 0.6rem 2rem;
	border-radius: 25px;
	transition: all 0.2s;
}

.ts-write-review-btn:hover {
	background: #c14324;
	border-color: #c14324;
	transform: translateY(-1px);
}

/* --------------------------------------------
   6. Review Cards (Coupang-style)
   -------------------------------------------- */
.ts-review-list .ts-review-card {
	padding: 0;
	margin-bottom: 0;
	transition: background 0.15s;
}

.ts-review-list .ts-review-card:hover {
	background: #fafafa;
}

.ts-review-body {
	position: relative;
}

.ts-review-left {
	min-width: 100px;
}

.ts-review-stars .fa {
	font-size: 0.9rem;
}

.ts-review-author {
	color: #555;
}

.ts-review-right {
	white-space: nowrap;
}

.ts-review-content {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #333;
	word-break: break-word;
}

/* Review images (thumbnails) */
.ts-review-images {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ts-review-thumb {
	width: 80px;
	height: 80px;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	border: 1px solid #eee;
	transition: border-color 0.2s, transform 0.2s;
}

.ts-review-thumb:hover {
	border-color: #DE5533;
	transform: scale(1.05);
}

.ts-review-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ts-review-img-inline {
	max-width: 200px;
	border-radius: 4px;
	margin: 0.25rem 0;
}

/* by-writer badge */
.by-writer {
	background: rgba(222, 85, 51, 0.05);
}

/* --------------------------------------------
   7. Review Form
   -------------------------------------------- */
.ts-review-form {
	background: #f8f9fa;
	border: 1px solid #eee;
	border-radius: 8px;
}

.ts-form-title {
	font-size: 1rem;
	font-weight: 700;
	color: #333;
}

/* Star rating input */
.ts-rating-select {
	padding: 0.5rem 0;
}

.ts-star-input .ts-star-btn {
	font-size: 1.5rem;
	color: #ddd;
	cursor: pointer;
	transition: color 0.15s, transform 0.15s;
	padding: 0 2px;
}

.ts-star-input .ts-star-btn:hover,
.ts-star-input .ts-star-btn.hovered {
	color: #ffc107;
	transform: scale(1.15);
}

.ts-star-input .ts-star-btn.selected {
	color: #ffc107;
}

.ts-rating-text {
	font-weight: 600;
	transition: color 0.2s;
}

/* Upload preview */
.ts-upload-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ts-upload-preview-item {
	width: 70px;
	height: 70px;
	border-radius: 6px;
	overflow: hidden;
	position: relative;
	border: 1px solid #ddd;
}

.ts-upload-preview-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ts-upload-preview-item .ts-remove-preview {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: rgba(0,0,0,0.6);
	color: #fff;
	border: none;
	font-size: 0.6rem;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	line-height: 1;
}

/* Image preview modal */
.ts-image-preview-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.85);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.ts-image-preview-overlay img {
	max-width: 90%;
	max-height: 90vh;
	border-radius: 4px;
	box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

/* Benefit content */
.ts-benefit-content {
	font-size: 0.95rem;
	line-height: 1.7;
}

/* --------------------------------------------
   8. Responsive
   -------------------------------------------- */
@media (max-width: 767px) {
	.ts-site-image img {
		max-height: 200px;
	}

	.ts-site-name {
		font-size: 1.2rem;
	}

	.ts-nav-tabs .nav-link {
		font-size: 0.85rem;
		padding: 0.6rem 0.5rem;
	}

	.ts-recommend-card {
		width: 110px;
	}

	.ts-rec-thumb {
		height: 75px;
	}

	.ts-review-left {
		min-width: auto;
	}

	.ts-review-thumb {
		width: 60px;
		height: 60px;
	}

	.ts-avg-rating-big {
		font-size: 2.2rem;
	}

	.ts-review-summary {
		padding: 1rem;
	}

	.ts-info-btn {
		font-size: 0.8rem;
		padding: 0.5rem;
	}

	.ts-slider-btn {
		width: 24px;
		height: 24px;
		font-size: 0.7rem;
	}

	.ts-recommend-slider {
		padding: 0 1.5rem;
	}

	.ts-star-input .ts-star-btn {
		font-size: 1.3rem;
	}
}

@media (max-width: 575px) {
	.ts-site-info .ts-info-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.2rem;
	}

	.ts-info-label {
		min-width: auto;
	}
}