
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.header .user-info {
  font-size: 1.2em;
  font-weight: 500;
}
.header .logout-button {
  padding: 6px 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
.header .logout-button:hover {
  background-color: #0056b3;
}


button.logout-button {
  padding: 6px 16px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}
button.logout-button:hover {
  background-color: #0056b3;
}

.product .stock {
  font-size: 0.9em;
  color: #333;
  margin-bottom: 8px;
}

.points-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.95em;
}
.points-table th,
.points-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}
.points-table th {
  background-color: #f5f5f5;
  font-weight: bold;
}


.container,
.wrap {                 
  max-width: none !important;
  width: 90% !important;
  padding-left: 5%;
  padding-right: 5%;
}
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;   
  gap: 20px;
  margin-bottom: 20px;
}
.navbar a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
}
.container > h2 {
  text-align: center;
  margin-bottom: 50px;  
}
.navbar a:hover {
  color: #0056b3;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
}
.button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  margin-right: 10px;
}
.button.primary {
  background-color: #007bff;
  color: white;
}
.button.primary:hover {
  background-color: #0056b3;
}
.button.success {
  background-color: #28a745;
  color: white;
}
.button.success:hover {
  background-color: #218838;
}
.button.danger {
  background-color: #dc3545;
  color: white;
}
.button.danger:hover {
  background-color: #a71d2a;
}


.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}
.product {
  background: white;
  width: 220px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  position: relative;
}


.product .img-wrapper {
  width: 100%;
  height: 200px;           
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.product img {
  width: 100%;
  height: 100%;       
  object-fit: cover;    
  object-position: center center;
  display: block;
  border-top-left-radius: 12px;   
  border-top-right-radius: 12px;
}
.product .product-name {
  font-weight: bold;
  font-size: 1.1em;
  margin: 12px 0 6px;
}
.product .price {
  color: #555;
  margin-bottom: 12px;
}
.product .buy-button {
  padding: 8px 16px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
.product .buy-button:hover:not(:disabled) {
  background-color: #218838;
}
.product .buy-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.shop-logo {
    width: 70px;  
    height: 70px; 
    object-fit: contain;
    margin-right: 12px;
}
.shop-header {
    display: flex;
    align-items: center;
    gap: 12px;
}


.sold-out-overlay {
  position: absolute;
  inset: 0;
  background: rgba(220,38,38,0.65);
  color: #fff;
  font-weight: 800;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;

  
  animation: fadePulse 2s infinite ease-in-out;
}

@keyframes fadePulse {
  0%, 100% { background-color: rgba(220,38,38,0.4); }
  50% { background-color: rgba(220,38,38,0.75); }
}

/* =========================================================
   ADMIN 공통 헤더/탭바 (모든 관리자 페이지 통일용)
   - body에 class="admin-shell" 만 붙이면 적용됨
========================================================= */
body.admin-shell{
  --lk-primary:#2563eb;
  --lk-text:#0f172a;
  --lk-border:rgba(15,23,42,.12);
  background:#f5f7fb;
  color:#111827;
}

body.admin-shell *, body.admin-shell *::before, body.admin-shell *::after{
  box-sizing:border-box;
}

body.admin-shell .container{
  max-width:1180px;
  margin:0 auto;
  padding:22px 18px 56px;
}

body.admin-shell h2{
  margin: 8px 0 14px;
  text-align:center;
  font-size:34px;
  line-height:1.2;
  letter-spacing:-0.02em;
  font-weight:900;
}

body.admin-shell h2::after{
  content:"";
  display:block;
  width:72px;
  height:4px;
  border-radius:999px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,.55), transparent);
  margin:12px auto 0;
}

/* 탭바 */
body.admin-shell .navbar{
  margin:14px auto 22px;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid var(--lk-border);
  background:rgba(255,255,255,.75);
  backdrop-filter:blur(8px);
  border-radius:999px;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}

body.admin-shell .navbar a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid transparent;
  color:var(--lk-text);
  text-decoration:none;
  font-weight:900;
  font-size:14px;
  background:transparent;
  transition:transform .08s ease, background .12s ease, border-color .12s ease;
  white-space:nowrap;
}

body.admin-shell .navbar a:hover{
  background:rgba(37,99,235,.08);
  border-color:rgba(37,99,235,.18);
}

body.admin-shell .navbar a:active{ transform: translateY(1px); }

body.admin-shell .navbar a.active{
  background:var(--lk-primary);
  color:#fff;
  border-color:rgba(0,0,0,.06);
  box-shadow:0 8px 16px rgba(37,99,235,.25);
}

/* 배지 */
body.admin-shell .navbar .badge,
body.admin-shell .navbar a .badge{
  background:rgba(255,255,255,.2);
  border:1px solid rgba(255,255,255,.25);
  color:#fff;
  font-weight:900;
  min-width:22px;
  height:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:0 8px;
  font-size:12px;
}

body.admin-shell .navbar a:not(.active) .badge{
  background:#eef2ff;
  border-color:#dbeafe;
  color:#1d4ed8;
}

/* 로그아웃 버튼 */
body.admin-shell .navbar form{ display:inline-flex; margin:0; }

body.admin-shell .logout-button{
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  color:var(--lk-text);
  font-weight:900;
  border-radius:999px;
  padding:10px 14px;
  cursor:pointer;
  font-size:14px;
  line-height:1;
  transition:transform .08s ease, background .12s ease, border-color .12s ease;
  white-space:nowrap;
}

body.admin-shell .logout-button:hover{
  background:rgba(15,23,42,.04);
  border-color:rgba(15,23,42,.18);
}

body.admin-shell .logout-button:active{ transform: translateY(1px); }

@media (max-width: 820px){
  body.admin-shell .navbar{
    border-radius:18px;
    padding:10px;
  }
  body.admin-shell .navbar a,
  body.admin-shell .logout-button{
    padding:9px 12px;
    font-size:13px;
  }
}


/* ===== LK Public Topbar (UI only) ===== */
.lk-topbar{
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(231,235,243,.9);
}
.lk-topbar-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 14px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}
.lk-topbar-brand{
  font-weight: 900;
  letter-spacing: -0.2px;
}
.lk-topbar-nav{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.lk-topbar-link{
  text-decoration:none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(231,235,243,.9);
  background: rgba(243,244,246,.9);
  color:#0f172a;
  font-weight: 800;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.lk-topbar-link:hover{ transform: translateY(-1px); background: #fff; border-color: rgba(203,213,225,1); }
.lk-topbar-link.active{
  background:#2563eb;
  border-color:#2563eb;
  color:#fff;
}
@media (max-width: 560px){
  .lk-topbar-inner{ padding: 10px 10px; }
  .lk-topbar-brand{ font-size: 14px; }
  .lk-topbar-link{ padding: 7px 10px; font-size: 13px; }
}
