body {
    background-image: url('Bg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    font-family: Arial, sans-serif;
}

.card-container {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.6);
    background-color: white;
    color: black;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-container:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.8);
}

.card-image {
    max-width: 100%;
    height: auto;
}

.card-item {
    margin-bottom: 10px;
}

h1 {
    color: #FFFFFF;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

h4 {
    margin: 10px 0;
}

.search-box {
    width: 40% !important;
    min-width: 200px !important;
}

.input-group {
    justify-content: flex-end !important;
}

.pagination .page-item .page-link {
    color: #663300;
    border: 1px solid #ddd;
    margin: 0 5px;
    border-radius: 5px;
    padding: 8px 15px;
    text-decoration: none;
    background-color: #fff;
}

.pagination .page-item.active .page-link {
    background-color: #663300;
    color: #fff;
    border-color: #663300;
}

.pagination .page-item .page-link:hover {
    background-color: #ffe0b3;
    border-color: #cc6600;
    color: #663300;
}

.head2 {
    color: white;
    padding: 5px 10px;
    text-align: center;
    position: relative;
    font-size: 2.5rem;
}

/* Header Section */
.header {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    color: white;
    height: 300px;
    position: relative;
}

.header-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.logo-container {
    position: absolute;
    left: 5%;
    top: 10%;
}

.logo-container img {
    display: block;
    width: 250px;
    height: 250px;
    object-fit: contain;
    padding: 10px;
}

.header-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.header img {
    max-width: 250px;
    height: auto;
    position: absolute;
    top: 0;
    left: 100px;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Navbar */
.navbar {
    background-color: #996515;
}

.navbar .nav-link {
    color: white !important;
}

.navbar .nav-link:hover {
    color: #ffe0b3 !important;
}

/* Footer */
.footer {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    color: white;
    padding: 40px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer .contact-info {
    flex: 1;
    margin-right: 20px;
}

.footer .contact-info h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: bold;
}

.footer .contact-info p {
    margin: 1px 0;
    font-size: 0.9rem;
}

.footer .image-section {
    max-width: 200px;
    flex-shrink: 0;
}

.footer .image-section img {
    max-width: 100%;
    height: auto;
}

.footer .image-section .copyright-text {
    font-size: 0.8rem;
    margin-top: 10px;
    line-height: 1.2;
    text-align: center;
}
.card-header {
    background-color: #996515;
    color: white;
    font-weight: bold;
}

.btn-orange {
  background-color: #996515;
  color: white;
  border: none;
}

.btn-orange:hover {
  background-color: #b35400;
}

.badge.bg-orange {
  background-color: #996515;
  color: white;
}

.glass-box {
  background: rgba(173, 173, 173, 0);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
  color: #996515;
}

.glass-box2{
  background: rgba(173, 173, 173, 0);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.shop-name-banner {
  background: #996515; 
  backdrop-filter: blur(6px);          
  -webkit-backdrop-filter: blur(6px);  
  border-radius: 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.card.hover-effect {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.hover-effect:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.card.custom-theme {
  color: #996515;
}

.text-shadow {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  color: #996515;
}

.product-card {
  min-height: 350px;
  border: 2px solid #996515;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.85); /* รองพื้นให้เนื้อหาอ่านง่าย */
  position: relative;
  z-index: 1;
}

.product-img-top {
  width: 100%;
  height: 220px;
  object-fit: contain;      /* ✅ แสดงเต็ม ไม่โดนตัด */
  background-color: #fff;   /* ✅ พื้นหลังขาว รองรับภาพโปร่ง */
  padding: 10px;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('management/bg2.png'); /* ใช้ภาพของคุณ */
  background-size: cover;
  background-position: center;
  filter: blur(0.8px);
  z-index: 0;
}

.product-card > * {
  position: relative;
  z-index: 2;
}

/* #cropperImage {
  max-width: none !important;
  width: auto !important;
  height: auto !important;
} */

@media (min-width: 768px) {
  .profile-info-row {
    margin-left: 180px; /* เผื่อโปรไฟล์ใหญ่ */
  }
}

.card-1 {
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;

}

img.card-img-top {
  padding: 0px;
  height: 300px;
  border: 3px solid #996515;
  object-fit: cover;
  background-color: #fff;
  border-radius: 8px 8px 8px 8px;
}

.custom-scaled-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transform: scale(0.75);        /* ย่อขนาดลงเหลือ 85% */
  transform-origin: top center;  /* ย่อจากจุดกึ่งกลางด้านบน */
  margin-top: 20px;             /* ดึงขึ้นเพื่อให้ชิดขอบ */
  margin-bottom: -80px;          /* ถ้าต้องการให้เนื้อหาขึ้นมาใกล้ */
  display: block;
}
.custom-scaled-img2 {
  width: 100%;
  height: 220px;
  object-fit: contain;
  transform: scale(0.75);        /* ย่อขนาดลงเหลือ 85% */
  transform-origin: top center;  /* ย่อจากจุดกึ่งกลางด้านบน */
  margin-top: 20px;             /* ดึงขึ้นเพื่อให้ชิดขอบ */
  margin-bottom: -80px;          /* ถ้าต้องการให้เนื้อหาขึ้นมาใกล้ */
  display: block;
}

.card-1:hover {
  transform: scale(1.1);
}

.zoom-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.zoom-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.card-link-wrapper {
  text-decoration: none;
  color: inherit;
  display: block;
}

.shop-list-scroll {
  max-height: 300px;     
  overflow-y: auto;
  padding-right: 5px;
}

.shop-list-scroll::-webkit-scrollbar {
  width: 6px;
}
.shop-list-scroll::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

  .list-group-item:hover {
    background-color: #fbe8c5;
    cursor: pointer;
  }

  .list-group-item.active {
    background-color: #30302fc0 !important;
    color: white;
  }

  .list-group-item.active a {
    color: white !important;
  }

  .list-group-item a {
    display: block;
    width: 100%;
  }

  .list-group-item a:hover {
    text-decoration: none;
  }

  .zoom-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .zoom-card:hover {
    transform: scale(1.05);
    z-index: 5;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  }

.category-list-scroll {
  max-height: 800px;  /* 300       */
  overflow-y: auto;
  padding-right: 5px;
}

.category-list-scroll::-webkit-scrollbar {
  width: 6px;
}
.category-list-scroll::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

.sidebar {
  height: 100vh;
  background-color: #343a40;
  color: #fff;
  padding-top: 20px;
  position: relative; /* สำคัญสำหรับวางตำแหน่ง Logout */
}

.logout-section {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  border-top: 1px solid #495057;
  background-color: #343a40;
}

.text-brown {
  color: #996515;
}

.auction-details {
  color: #585858;
}

.btn-reply {
  background-color: #b8860b; /* ทองน้ำตาล */
  color: white;
  font-size: 0.75rem;
  padding: 2px 10px;
  height: 28px;
  min-width: 70px;
  border-radius: 5px;
  border: none;
  transition: background-color 0.2s ease-in-out;
}
.btn-reply:hover {
  background-color: #a07100; /* สีเข้มขึ้นเมื่อ hover */
}

.title-scope .table td a:not(.btn),
.title-scope .table th a:not(.btn),
.title-scope .card .card-title,
.title-scope .card .card-title a{
  color: var(--title-color, #996515) !important;
}
.title-scope .table td a:not(.btn):hover,
.title-scope .table th a:not(.btn):hover,
.title-scope .card .card-title a:hover{
  color: var(--title-hover, #996515) !important;
  text-decoration: underline;
}

/* การ์ด */
.amulet-card{
  background-image:url('management/bg2.png');
  background-size:cover; background-position:center;
  border-radius:22px; border:1px solid rgba(0,0,0,.08);
  box-shadow:0 6px 14px rgba(0,0,0,.08);
  padding:14px 12px 12px; text-align:center;
  transition:transform .15s ease, box-shadow .15s ease;
  overflow:hidden;         /* กันรูปหลุด */
}
.amulet-card:hover{ transform:translateY(-2px); box-shadow:0 10px 20px rgba(0,0,0,.12); }

/* กรอบรูป + Fallback ถ้า aspect-ratio ใช้ไม่ได้ */
.amulet-frame{
  position:relative;
  width:100%;
  max-width:260px;         /* กันกว้างเกินคอลัมน์บนบางธีม */
  margin:6px auto 10px;
  background:#fff;
  border:3px solid #d28a17;
  border-radius:12px;
  aspect-ratio:3/4;        /* สมัยใหม่ */
}
.amulet-frame::before{     /* Fallback สำหรับบางเครื่อง/กรณีที่ aspect-ratio ไม่ทำงาน */
  content:"";
  display:block;
  padding-top:133.333%;
}
.amulet-frame > img{
  position:absolute;
  inset:6px;
  width:calc(100% - 12px);
  height:calc(100% - 12px);
  object-fit:contain;      /* ให้เห็นรูปเต็มแบบไม่บิด */
  background:#fff;
}

/* ป้องกันรูปใหญ่ล้นในจุดอื่น ๆ */
.carousel img,
.amulet-card img{
  max-width:100%;
}

/* ข้อความ */
.amulet-title{ color:#996515; font-weight:700; margin:6px 0 4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.amulet-price{ font-weight:700; color:#111; margin-bottom:6px; }
.amulet-meta{ color:#333; font-size:.92rem; margin:0; }

  .shop-card{
    border-radius:16px; border:1px solid rgba(0,0,0,.06);
    box-shadow:0 6px 14px rgba(0,0,0,.08);
    transition:transform .12s ease, box-shadow .12s ease;
  }
  .shop-card:hover{ transform:translateY(-2px); box-shadow:0 10px 20px rgba(0,0,0,.12); }
  .text-brown{ color:#996515; }

  .shop-mini-card{
  border:1px solid rgba(0,0,0,.06);
  background:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,.06);
  transition:transform .15s ease, box-shadow .15s ease;
}
.shop-mini-card:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 18px rgba(0,0,0,.12);
}
.shop-avatar{
  width:56px; height:56px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid #d28a17; /* โทนน้ำตาลทอง */
}
.shop-name{ color:#996515; font-weight:700; }


html, body { overflow-x: hidden; }