/* Ase V3 Template Redesign - real template structure, no JS wrapping */

:root{
  --v3-bg:#f7f3ed;
  --v3-card:#fffdf9;
  --v3-text:#251f1a;
  --v3-muted:#7b7168;
  --v3-soft:#f0e8de;
  --v3-line:#e4d7c8;
  --v3-accent:#7d5c3d;
  --v3-accent-dark:#3d2f27;
  --v3-gold:#a77c4b;
  --v3-shadow:0 18px 45px rgba(54,42,31,.10);
  --v3-shadow-soft:0 10px 28px rgba(54,42,31,.065);
}

.v3-page{
  max-width:1240px;
  margin:0 auto;
  padding:28px 28px 72px;
}

.v3-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin:16px 0 18px;
}

.v3-kicker{
  font-size:12px;
  color:var(--v3-accent);
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-bottom:6px;
}

.v3-head h1{
  margin:0;
  font-size:30px;
  letter-spacing:-.03em;
  color:var(--v3-text);
}

.v3-head p{
  margin:8px 0 0;
  color:var(--v3-muted);
  font-size:14px;
}

.v3-count{
  padding:9px 12px;
  border:1px solid var(--v3-line);
  border-radius:999px;
  background:#fff;
  color:#6d6259;
  font-size:13px;
  white-space:nowrap;
}

.v3-filter{
  display:flex !important;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin:18px 0 22px !important;
  padding:14px !important;
  border:1px solid var(--v3-line) !important;
  border-radius:20px !important;
  background:rgba(255,255,255,.92) !important;
  box-shadow:var(--v3-shadow-soft) !important;
}

.v3-filter input,
.v3-filter select,
.v3-filter button{
  height:42px !important;
  min-height:42px !important;
  border-radius:12px !important;
}

.v3-filter input,
.v3-filter select{
  border:1px solid #d8cabb !important;
  background:#fff !important;
}

.v3-filter button{
  background:var(--v3-accent-dark) !important;
  color:#fff !important;
  border:0 !important;
  padding:0 18px !important;
  font-weight:800 !important;
}

.v3-clear{
  display:inline-flex;
  align-items:center;
  height:42px;
  padding:0 10px;
  color:var(--v3-muted);
  font-size:13px;
}

.v3-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:22px;
  margin:22px 0 54px;
}

.v3-card{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  min-width:0;
  background:var(--v3-card);
  border:1px solid var(--v3-line);
  border-radius:22px;
  box-shadow:var(--v3-shadow-soft);
  color:var(--v3-text);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.v3-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--v3-shadow);
  border-color:#cdb79d;
}

.v3-imgbox{
  height:220px;
  padding:16px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.95), rgba(247,241,233,.96));
  border-bottom:1px solid #eee3d7;
  display:flex;
  align-items:center;
  justify-content:center;
}

.v3-imgbox img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
}

.v3-sets-grid .v3-imgbox{
  height:250px;
}

.v3-urns-grid .v3-imgbox{
  height:210px;
  padding:20px;
}

.v3-card-body{
  padding:15px 16px 16px;
}

.v3-card-title{
  margin:0 0 8px;
  font-size:18px;
  line-height:1.35;
  font-weight:850;
  color:#76573b;
}

.v3-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:10px;
}

.v3-pill{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 8px;
  border-radius:999px;
  background:#f1e8dd;
  color:#76573b;
  font-size:12px;
  font-weight:750;
}

.v3-price{
  font-size:19px;
  font-weight:900;
  color:#2d241e;
  margin:8px 0;
}

.v3-info{
  color:#6f655d;
  font-size:13px;
  line-height:1.6;
}

.v3-info b{
  color:#332a23;
}

.v3-card-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid #eee4d9;
  color:#8a6a49;
  font-size:13px;
  font-weight:800;
}

.v3-empty{
  min-height:260px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:24px 0 60px;
  border-radius:22px;
  background:#fff;
  border:1px dashed #d9c9b7;
  color:var(--v3-muted);
  box-shadow:var(--v3-shadow-soft);
}

.v3-pager{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin:24px 0 0;
}

.v3-pager button{
  height:38px;
  border-radius:999px;
  padding:0 16px;
}

.v3-pager .info{
  color:var(--v3-muted);
  font-size:13px;
}

.v3-multi{
  position:relative;
  min-width:210px;
}

.v3-multi summary{
  height:42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 12px;
  border:1px solid #d8cabb;
  border-radius:12px;
  background:#fff;
  color:#3d342d;
  cursor:pointer;
  list-style:none;
}

.v3-multi summary::-webkit-details-marker{
  display:none;
}

.v3-multi summary::after{
  content:"⌄";
  color:#8a7b6b;
}

.v3-multi summary span{
  font-size:12px;
  color:var(--v3-accent);
}

.v3-multi-panel{
  position:absolute;
  z-index:40;
  left:0;
  top:calc(100% + 8px);
  min-width:280px;
  max-height:320px;
  overflow:auto;
  padding:8px;
  background:#fff;
  border:1px solid var(--v3-line);
  border-radius:16px;
  box-shadow:var(--v3-shadow);
}

.v3-multi-option{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:36px;
  padding:5px 8px;
  border-radius:10px;
  cursor:pointer;
}

.v3-multi-option:hover{
  background:#f7f1e9;
}

.v3-multi-option input{
  width:16px;
  height:16px;
  margin:0;
}

.v3-multi-option span{
  flex:1;
  white-space:nowrap;
}

.v3-multi-option em{
  color:var(--v3-muted);
  font-style:normal;
  font-size:12px;
}

.v3-knowledge{
  display:grid;
  grid-template-columns:1fr 2fr;
  gap:18px;
  margin:0 0 22px;
  padding:18px;
  border-radius:22px;
  border:1px solid var(--v3-line);
  background:linear-gradient(135deg,#fffdf9,#f7efe5);
  box-shadow:var(--v3-shadow-soft);
}

.v3-knowledge h2{
  margin:0 0 8px;
  font-size:20px;
}

.v3-knowledge p{
  margin:0;
  color:#6d6258;
  line-height:1.7;
  font-size:13px;
}

.v3-knowledge-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.v3-knowledge-item{
  padding:12px;
  border-radius:16px;
  background:#fff;
  border:1px solid #eee1d4;
}

.v3-knowledge-item b{
  display:block;
  color:#5a412c;
  margin-bottom:4px;
}

/* detail */
.v3-detail{
  max-width:1240px;
  margin:0 auto;
  padding:26px 28px 72px;
}

.v3-backbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:18px;
}

.v3-backbar a{
  color:#7b7168;
  font-size:13px;
}

.v3-detail-hero{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);
  gap:28px;
  align-items:start;
  margin-bottom:28px;
}

.v3-detail-image{
  min-height:420px;
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:24px;
  border:1px solid var(--v3-line);
  background:#fff;
  box-shadow:var(--v3-shadow-soft);
  overflow:hidden;
}

.v3-detail-image img{
  display:block !important;
  max-width:100% !important;
  max-height:74vh !important;
  object-fit:contain !important;
}

.v3-detail-info{
  border-radius:24px;
  border:1px solid var(--v3-line);
  background:rgba(255,255,255,.94);
  box-shadow:var(--v3-shadow-soft);
  padding:22px;
}

.v3-detail-info h1{
  margin:0 0 8px;
  font-size:28px;
  line-height:1.25;
  letter-spacing:-.02em;
}

.v3-detail-code{
  color:var(--v3-muted);
  font-size:13px;
  margin-bottom:12px;
}

.v3-detail-price{
  font-size:30px;
  font-weight:950;
  color:#2d241e;
  margin:12px 0 18px;
}

.v3-dl{
  display:grid;
  grid-template-columns:86px 1fr;
  gap:8px 14px;
  font-size:14px;
  line-height:1.65;
}

.v3-dl dt{
  color:var(--v3-muted);
}

.v3-dl dd{
  margin:0;
  font-weight:700;
  color:#332a23;
}

.v3-note{
  display:flex;
  gap:12px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid #ead8c0;
  background:#fff8ec;
  color:#665747;
  margin:16px 0 0;
  font-size:13px;
  line-height:1.65;
}

.v3-section{
  margin:24px 0;
}

.v3-section h2{
  margin:0 0 12px;
  padding-bottom:8px;
  border-bottom:1px solid var(--v3-line);
  font-size:19px;
}

.v3-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid var(--v3-line);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--v3-shadow-soft);
}

.v3-table th{
  background:#f2eadf;
  color:#665747;
  font-size:13px;
  padding:11px 13px;
  text-align:left;
}

.v3-table td{
  padding:11px 13px;
  border-top:1px solid #eee4d9;
  font-size:13px;
}

.v3-acc-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(210px,1fr));
  gap:10px;
}

.v3-acc-item{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px;
  border:1px solid var(--v3-line);
  border-radius:16px;
  background:#fff;
}

.v3-acc-item b{
  color:#3b3028;
}

.v3-acc-item span{
  color:var(--v3-muted);
  font-size:12px;
}

@media(max-width:1180px){
  .v3-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:820px){
  .v3-page,
  .v3-detail{
    padding-left:14px;
    padding-right:14px;
  }

  .v3-head,
  .v3-detail-hero,
  .v3-knowledge{
    grid-template-columns:1fr;
    display:grid;
  }

  .v3-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
  }

  .v3-imgbox{
    height:185px;
  }

  .v3-knowledge-list{
    grid-template-columns:1fr;
  }
}
