.store-profile {
    background-color:#f6f6f6; width: 100%;
}
.store-profile .profile-cover-photo {
    aspect-ratio: 4.76 / 1 !important; /* Tỷ lệ cố định ~1190:250 */
    overflow: hidden;
    background-size: cover !important;
    background-repeat: no-repeat;
}
.store-profile .profile-cover-photo:not(.has-banner) {
    height: 100px !important;
    aspect-ratio: unset !important;
    background-color: #e0e0e0;
}
.store-profile .profile-cover-photo img {
    display: none;
}

.profile-rating-tab-buttons {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}
.profile-rating-tab-btn {
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 3px solid transparent;
    font-size: 14px;
}
.profile-rating-tab-btn:hover {
    color: #e67e22;
}
.profile-rating-tab-btn.active {
    border-bottom-color: #e67e22;
    font-weight: bold;
    color: #e67e22;
}
.profile-rating-summary {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}
.profile-rating-points {
	margin-bottom: 18px; margin-top: 8px;
}
.profile-rating-stats {
    margin-top: 8px;
}
.profile-rating-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
}
.profile-rating-list {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}
.profile-rating-item {
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.profile-rating-item:hover {
    background-color: #f1f5f6;
}
.profile-rating-item:last-child {
    border-bottom: none;
}
.profile-rating-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    flex-wrap: wrap;
}
.profile-rating-name {
    font-weight: bold;
    color: #333;
    text-decoration: none;
}
.profile-rating-score {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #555;
    text-decoration: none;
}
.profile-rating-score img {
    vertical-align: middle;
}
.profile-rating-time {
    color: #008000;
    font-size: 12px;
    margin-left: auto;
}
.profile-rating-content {
    margin-top: 5px;
    font-size: 14px;
    color: #555;
}
.profile-rating-good {
    border-left: 4px solid #28a745;
}
.profile-rating-neutral {
    border-left: 4px solid #6c757d;
}
.profile-rating-bad {
    border-left: 4px solid #dc3545;
}
.profile-rating-withdrawn {
    border-left: 4px solid #6c757d;
    background-color: #f8f9fa;
    color: #6c757d;
}
.profile-rating-withdrawn .profile-rating-header i {
    color: #6c757d;
}
.profile-rating-actions {
    text-align: right;
    margin-bottom: 8px;
}
.profile-rating-btn {
    background-color: #e67e22;
    color: #fff; 
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.profile-rating-btn:hover {
    background-color: #d35400;
    color: #fff;
}
.mem-rate-form {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    max-width: 500px;
    margin: 10px auto;
}
.mem-rate-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}
.mem-rate-title a {
	font-size: 18px;
}
.mem-rate-username {
    color: #e67e22;
    font-weight: bold;
}
.mem-rate-group {
    margin-bottom: 12px;
}
.mem-rate-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}
.mem-rate-select,
.mem-rate-textarea {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
}
.mem-rate-actions {
    display: flex;
    gap: 10px;
}
.mem-rate-btn {
    padding: 8px 16px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.mem-rate-btn-submit {
    background-color: #3498db;
    color: #fff;
    border: none;
}
.mem-rate-btn-submit:hover {
    background-color: #2980b9;
}
.mem-rate-btn-back {
    background-color: #e0e0e0;
    color: #333;
    border: none;
}
.mem-rate-btn-back:hover {
    background-color: #ccc;
}
.mem-alert {
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 500px;
    margin: 0 auto 15px;
    border: 1px solid transparent;
}
.mem-alert {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}
.mem-alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
.mem-alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}
.mem-alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}
.mem-alert i {
    font-size: 18px;
}
.store-panel-dialog {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.store-panel-dialog.active {
    display: flex;
}
.store-panel-content {
    background: white;
    padding: 20px;
    border-radius: 6px;
    min-width: 300px;
    max-width: 90%;
    position: relative;
}
.store-panel-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}
/* Khung profile */
.profile-container {
    width: 1200px;
    max-width: 100%; /* Để co giãn trên màn nhỏ */       
    margin: 0 auto 0; /* Đẩy xuống để không che header */
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2; /* Đảm bảo nằm trên banner */
    flex-wrap: wrap; /* Hỗ trợ responsive */
}
.profile-cover-photo {
    width: 100%;
    aspect-ratio: 4.76 / 1 !important; /* Tỷ lệ cố định ~1190:250 */
    overflow: hidden;
    border-radius: 0 0 8px 8px;
    position: relative;
    background-color: #e0e0e0;
    background-size: cover !important;
    background-repeat: no-repeat;
}
.profile-cover-photo:not(.has-banner) {
    height: 100px !important;
    aspect-ratio: unset !important;
}
/* Gradient overlay từ dưới lên khi không có banner */
.profile-cover-photo:not(.has-banner)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(180,180,180,0.6), rgba(224,224,224,0));
    pointer-events: none;
}
.profile-cover-photo img {
    display: none;
}
/* Khu vực thông tin user */
.profile-user-info {
    display: flex;            /* 💥 THÊM DÒNG NÀY */
    align-items: center;      /* canh dọc avatar và nội dung */
    margin-top: -30px;
    margin-bottom: 10px;
    border-radius: 10px;
    padding: 12px;
    background: #fff;
    position: relative;
    z-index: 2;
    width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.profile-details {
    flex: 1;
    min-width: 0;
}
.profile-details a h2 {
	font-size: 18px; color: #000; margin: 8px 0 4px 0 !important; padding: 0 !important;line-height: 1.3;    
}
/* Avatar */
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
	flex: 0 0 auto; /* Avatar giữ nguyên kích thước */
    margin-right: 16px;
}
@media (max-width: 414px) {
	.profile-avatar {
		width: 90px;
		height: 90px;
	}
}
/* Thông tin cá nhân */
.profile-info {	
	width: 100vw;
	text-align: left;	
	background: #fff;
	padding: 5px 10px 5px 10px;
	box-sizing: border-box;
}
.profile-info h2 {
    margin: 0;
    color: #333;
}
.profile-info .profile-info-content {
	margin-top: 10px;
    color: #222;
    font-size: 13px;
	border: 1px solid #ddd;
	padding: 10px;
	border-radius: 6px;
}
.profile-info .profile-info-content * {	
    font-size: 13px;
	line-height: 1.5;
}
/* Responsive - Khi màn hình nhỏ */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column; /* Chuyển sang dạng cột trên màn hình nhỏ */
        align-items: center;       
    }  
    .profile-info {        
        margin-top: 5px;
		padding: 5px 15px 5px 15px;
    }
	.profile-slogan {
		padding: 0px 10px;
	}   
	#profile-toggle-intro {
        text-align: center; /* Canh giữa khi màn hình nhỏ */
    } 
}
.profile-slogan {
    font-weight: bold;
    font-size: 16px;
    color: #d9534f;
    text-align: left;
    margin: 20px 0;
}
#profile-intro-text {
    max-height: 60px; /* Giới hạn chiều cao */
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease-in-out;
}
#profile-intro-text.expanded {
    max-height: none; /* Mở rộng hết nội dung */
}
#profile-toggle-intro {
    display: block;
    text-align: left;
    margin-top: 8px;
    color: #cc0000;            /* 🌟 Màu nổi bật */
    font-weight: 500;          /* 🌟 Đậm nhẹ */
    text-decoration: underline;/* 🌟 Nhấn mạnh */
    cursor: pointer;
}
.profile-badges {
    margin-top: 6px;
    display: flex;
	flex-direction: column;    
    gap: 5px;
}
/* Badge VIP, điểm uy tín, icon */

.profile-rating {
    font-size: 13px;
    color: #555;
    display: block;
    align-items: center;   
}
.profile-rating i {
	color: #28a745;  /* màu xanh lá, hoặc #555 cho trung tính */
	margin-right: 4px;
	
}
.profile-verify-warn {
    font-size: 13px;
    color: #f39c12;
    display: block;
    align-items: center;    
}
/* Nút liên hệ */
.profile-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}
.profile-actions .a-button,
.profile-actions .a-button:visited,
.profile-actions .a-button:focus,
.profile-actions .a-button:active {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px;                 /* align with post detail */
	font-size: 12px;
	line-height: 1;
	border-radius: 4px;
	border: 1px solid #c6a65a;        /* muted gold */
	background: #fffdf5;              /* warm paper */
	color: #5a4632;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,0.06);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.profile-actions .a-button:hover {
	background: #fff6d8;
	border-color: #b9923e;
	color: #3e2f21;
	box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.profile-actions .a-button:active {
	background: #fdebb7;
	box-shadow: inset 0 2px 4px rgba(0,0,0,0.08);
}
.profile-actions .a-button:focus-visible {
	outline: 2px solid #d8b25a;
	outline-offset: 2px;
}
/* Nút hiện số điện thoại (profile) */
.profile-actions .btn-show-phone {
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px;                 /* align with post detail */
	font-size: 12px;
	line-height: 1;
	border-radius: 4px;
	border: 1px solid #c6a65a;        /* muted gold */
	background: #fffdf5;              /* warm paper */
	color: #5a4632;
	font-weight: 500;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	white-space: nowrap;
	box-sizing: border-box;
}
.profile-actions .btn-show-phone:hover {
	background: #fff6d8;
	border-color: #b9923e;
	color: #3e2f21;
	box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.profile-actions .btn-show-phone:active {
	background: #fdebb7;
	box-shadow: inset 0 2px 4px rgba(0,0,0,0.08);
}
.profile-actions .btn-show-phone:focus-visible {
	outline: 2px solid #d8b25a;
	outline-offset: 2px;
}
.profile-actions .btn-show-phone a {
	color: inherit;
	text-decoration: none; /* keep steady look after reveal */
}
@media (max-width: 414px) {
    .profile-actions .a-button,
    .profile-actions .btn-show-phone {
        padding: 4px 8px;  /* giảm padding ngang */
        font-size: 12px;   /* giảm font size */
        white-space: nowrap; /* chống xuống dòng text */
    }
    .profile-actions {
        gap: 10px;          /* giảm khoảng cách */
    }
}
.profile-meta {
    font-size: 14px;
    color: #444;
    margin: 25px 10px 0 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.profile-meta i {
    color: #888;
    margin-right: 6px;
    font-size: 1.1em;
}
@media (max-width: 768px) {
    .profile-meta {
        margin: 5px 10px 0 10px;
        gap: 14px;
    }
}
/* Profile meta inline - ngay dưới tên user */
.profile-meta-inline {
    font-size: 13px;
    color: #666;
    margin: 4px 0 8px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.profile-meta-inline i {
    color: #888;
    margin-right: 4px;
    font-size: 1em;
}
.profile-joined-inline,
.profile-location-inline {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
@media (max-width: 480px) {
    .profile-meta-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
.profile-location,
.profile-joined {
    display: flex;
    align-items: center;
    gap: 4px;
}
.profile-slogan {
    font-size: 13px;
    color: #c00;
    font-weight: 500;
    margin-top: 6px;
}
.profile-description {
    font-size: 14px;
    color: #333;
    background: #f9f9f9;
    padding: 12px;
    border-radius: 6px;
    margin-top: 14px;
    line-height: 1.5;
}
/* profile post list  */
.profile-postListContainer {
	display: grid;
    grid-template-columns: repeat(4, 1fr); /* Tối đa 4 cột */
    gap: 16px;
    padding: 8px;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
	.profile-postListContainer {
	  grid-template-columns: repeat(3, 1fr); /* 3 cột cho tablet */
	  gap: 14px;
	}
}
@media (max-width: 700px) {
	.profile-postListContainer {
	  grid-template-columns: repeat(2, 1fr); /* 2 cột cho mobile */
	  gap: 12px;
	  padding: 6px;
	}
}
@media (max-width: 400px) {
	.profile-postListContainer {
	  grid-template-columns: 1fr 1fr;
	  gap: 10px;
	  padding: 4px;
	}
}
.profile-postItemInner {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 260px;
}
.profile-postItem {
    max-width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 8px;
    background: #fff;
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
}  
.profile-postItem:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}  
.profile-postImageWrapper {
	overflow: hidden;
	width: 100%;
	aspect-ratio: 1 / 1; /* Tỉ lệ vuông */
	display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
}
@media (max-width: 700px) {
    .profile-postImageWrapper {
        aspect-ratio: 1 / 1;    
    }
}
.profile-postImageWrapper img,
.profile-postImageWrapper img.postImage {
    width: 100%;
    height: 100%;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover;
    object-position: center;
}  
.profile-postInfoWrapper {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}  
.profile-productName {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}  
.profile-listPrice {
	color: #e53935;
	font-weight: bold;
}  
.profile-listAuthorInfo {
	font-size: 12px;
	color: #777;
	margin-top: auto;
}

/* Profile Intro Section - Tab Giới thiệu */
.profile-intro-section {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

.profile-intro-content {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}

.profile-intro-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 12px 0;
}

.profile-intro-content div,
.profile-intro-content p {
    margin-bottom: 12px;
}

.profile-intro-content h1,
.profile-intro-content h2,
.profile-intro-content h3 {
    margin: 16px 0 10px 0;
    color: #222;
}

.profile-intro-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #888;
    font-size: 14px;
    text-align: center;
    min-height: 200px;
}

.profile-intro-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ccc;
}

.profile-intro-empty a {
    color: #0066cc;
    font-weight: 500;
    text-decoration: none;
}

.profile-intro-empty a:hover {
    text-decoration: underline;
}